Skip to content

Commit 29d3362

Browse files
committed
updating note
1 parent d82a690 commit 29d3362

20 files changed

Lines changed: 42 additions & 47 deletions

tests/ArgString.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, beforeEach } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import ArgString from '../src/data/processors/ArgString';
66

77
// Mock Nest class to mimic the nest behavior

tests/CaseStudy.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, beforeEach } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import Router from '../src/router/Router';
66

77
class Server extends Router<unknown, unknown, Server> {

tests/EventEmitter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import EventEmitter from '../src/emitter/EventEmitter';
66

77
describe('Event Emitter Tests', () => {

tests/Exception.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import Exception from '../src/Exception';
66

77
function func1(x: number) {

tests/ExpressEmitter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import ExpressEmitter from '../src/emitter/ExpressEmitter';
66

77
describe('Expression Emitter Tests', () => {

tests/FileData.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import FileData from '../src/data/processors/FileData';
66
import { FileMeta } from '../src/types';
77

tests/FileLoader.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
import path from 'node:path';
12
import { describe, it } from 'mocha';
23
import { expect } from 'chai';
3-
4-
import path from 'node:path';
5-
6-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
7-
//and we are testing in a typescript environment via ts-mocha
4+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
5+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
86
import FileLoader from '../src/system/FileLoader';
97
import NodeFS from '../src/system/NodeFS';
108

tests/FormData.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, beforeEach } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import FormData from '../src/data/processors/FormData';
66

77
// Mock Nest class to mimic the behavior of the real Nest class

tests/Helper.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import map from '../src/data/map';
66
import set from '../src/data/set';
77
import { makeArray, makeObject, shouldBeAnArray } from '../src/data/Nest';

tests/ItemQueue.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from 'mocha';
22
import { expect } from 'chai';
3-
//NOTE: no extensions in tests because it's excluded in tsconfig.json
4-
//and we are testing in a typescript environment via ts-mocha
3+
//NOTE: no extensions in tests because it's excluded in tsconfig.json and
4+
//we are testing in a typescript environment via `ts-mocha -r tsx` (esm)
55
import ItemQueue from '../src/queue/ItemQueue';
66

77
describe('Item Queue Tests', () => {

0 commit comments

Comments
 (0)