module: add --experimental-transform-types flag #60346
Annotations
2 errors and 1 notice
test/es-module/test-typescript-transform.mjs#L50
--- stdout ---
β execute a TypeScript file with transformation enabled (95.862369ms)
::debug::starting to run execute a TypeScript file with transformation enabled
::debug::completed running execute a TypeScript file with transformation enabled
β reconstruct error of a TypeScript file with transformation enabled and sourcemaps (82.558475ms)
::debug::starting to run reconstruct error of a TypeScript file with transformation enabled and sourcemaps
::debug::completed running reconstruct error of a TypeScript file with transformation enabled and sourcemaps
β reconstruct error of a TypeScript file with transformation enabled without sourcemaps (70.761434ms)
::debug::starting to run reconstruct error of a TypeScript file with transformation enabled without sourcemaps
::debug::completed running reconstruct error of a TypeScript file with transformation enabled without sourcemaps
β should not elide unused imports (64.655579ms)
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /ERR_UNSUPPORTED_DIR_IMPORT/. Input:
'/home/runner/work/node/node/test/fixtures/typescript/ts/transformation/test-unused-import.ts:2\n' +
'import { missing } from ".";\n' +
'^^^^^^\n' +
'\n' +
'SyntaxError: Cannot use import statement outside a module\n' +
' at wrapSafe (node:internal/modules/cjs/loader:1469:18)\n' +
' at Module._compile (node:internal/modules/cjs/loader:1491:20)\n' +
' at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1629:10)\n' +
' at Module.load (node:internal/modules/cjs/loader:1317:32)\n' +
' at Module._load (node:internal/modules/cjs/loader:1127:12)\n' +
' at TracingChannel.traceSync (node:diagnostics_channel:315:14)\n' +
' at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)\n' +
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:166:5)\n' +
' at node:internal/main/run_main_module:30:49\n' +
'\n' +
'Node.js v22.6.1-pre\n'
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/es-module/test-typescript-transform.mjs:50:3)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:863:9)
at async Test.processPendingSubtests (node:internal/test_runner/test:574:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '/home/runner/work/node/node/test/fixtures/typescript/ts/transformation/test-unused-import.ts:2\nimport { missing } from ".";\n^^^^^^\n\nSyntaxError: Cannot use import statement outside a module\n at wrapSafe (node:internal/modules/cjs/loader:1469:18)\n at Module._compile (node:internal/modules/cjs/loader:1491:20)\n at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1629:10)\n at Module.load (node:internal/modules/cjs/loader:1317:32)\n at Module._load (node:internal/modules/cjs/loader:1127:12)\n...',
expected: /ERR_UNSUPPORTED_DIR_IMPORT/,
operator: 'match'
}
::debug::starting to run should not elide unused imports
::error title=should not elide unused imports,file=test/es-module/test-typescript-transform.mjs,line=50,col=3::[Error [ERR_TEST_FAILURE]: The input did not match the regular expression /ERR_UNSUPPORTED_DIR_IMPORT/. Input:
'/home/runner/work/node/node/test/fixtures/typescript/ts/transformation/test-unused-import.ts:2\n' +
'import { missing } from ".";\n' +
'^^^^^^\n' +
'\n' +
'SyntaxError: Cannot use import statement outside a module\n' +
' at wrapSafe (node:internal/modules/cjs/loader:1469:18)\n' +
' at Module._compile (node:internal/modules/cjs/loader:1491:20)\n' +
' at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1629:10)\n' +
' at Module.load (node:internal/modules/cjs/loader:1317:32)\n' +
' at Module._load (node:internal/modules/cjs/loader:1127:12)\n' +
' at TracingChannel.traceSync (node:diagnostics_channel:315:14)\n' +
' at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)\n' +
' at Function.executeUserEntryPoint [as
|
|
|
This job failed
Loading