Skip to content

Commit 1c293cb

Browse files
committed
test: remove duplicated test descriptions
1 parent 49a9ba4 commit 1c293cb

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

lib/internal/modules/cjs/loader.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,11 @@ function getMaybeCachedSource(mod, filename) {
15711571
return content;
15721572
}
15731573

1574+
/**
1575+
* Built-in handler for `.cts` files.
1576+
* @param {Module} module The module to compile
1577+
* @param {string} filename The file path of the module
1578+
*/
15741579
function loadCTS(module, filename) {
15751580
if (isUnderNodeModules(filename)) {
15761581
throw new ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING(filename);

test/es-module/test-typescript-eval.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ test('expect fail eval TypeScript CommonJS syntax with input-type module', async
7070
strictEqual(result.code, 1);
7171
});
7272

73-
test('expect fail eval TypeScript CommonJS syntax with input-type module', async () => {
73+
test('expect fail eval TypeScript ESM syntax with input-type commonjs', async () => {
7474
const result = await spawnPromisified(process.execPath, [
7575
'--experimental-strip-types',
7676
'--input-type=commonjs',

test/es-module/test-typescript-module.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ test('execute an .mts file importing a .cts file', async () => {
4242
const result = await spawnPromisified(process.execPath, [
4343
'--experimental-strip-types',
4444
'--no-warnings',
45-
'--no-warnings',
4645
fixtures.path('typescript/mts/test-import-commonjs.mts'),
4746
]);
4847

test/es-module/test-typescript.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ test('execute a TypeScript file with CommonJS syntax requiring .mts', async () =
203203
strictEqual(result.code, 1);
204204
});
205205

206-
test('execute a TypeScript file with CommonJS syntax requiring .mts with require-module', async () => {
206+
test('execute a TypeScript file with CommonJS syntax requiring .mts using require-module', async () => {
207207
const result = await spawnPromisified(process.execPath, [
208208
'--experimental-strip-types',
209209
'--experimental-require-module',
@@ -215,7 +215,7 @@ test('execute a TypeScript file with CommonJS syntax requiring .mts with require
215215
strictEqual(result.code, 0);
216216
});
217217

218-
test('execute a TypeScript file with CommonJS syntax requiring .mts with require-module', async () => {
218+
test('execute a TypeScript file with CommonJS syntax requiring .cts using commonjs', async () => {
219219
const result = await spawnPromisified(process.execPath, [
220220
'--experimental-strip-types',
221221
'--experimental-default-type=commonjs',

0 commit comments

Comments
 (0)