test: use unusual chars in the path to ensure our tests are robust #59191
Annotations
3 errors and 1 notice
Re-run test in a folder whose name contains unusual chars:
test/parallel/test-util-getcallsites.js#L1
--- stderr ---
node:assert:1075
throw err;
^
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /lineNumber: 8/. Input:
'getCallSite: [Object: null prototype] {\n' +
" functionName: '',\n" +
' scriptName: \'/Users/runner/work/node/node/dir%20with $unusual"chars?\\\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/test-get-callsite.ts\',\n' +
' lineNumber: 2,\n' +
' column: 18\n' +
'}\n'
at Object.<anonymous> (/Users/runner/work/node/node/dir%20with $unusual"chars?'åß∂ƒ©∆¬…`/test/parallel/test-util-getcallsites.js:127:10)
at Module._compile (node:internal/modules/cjs/loader:1740:14)
at Object..js (node:internal/modules/cjs/loader:1905:10)
at Module.load (node:internal/modules/cjs/loader:1474:32)
at Function._load (node:internal/modules/cjs/loader:1286:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'getCallSite: [Object: null prototype] {\n' +
" functionName: '',\n" +
' scriptName: \'/Users/runner/work/node/node/dir%20with $unusual"chars?\\\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/test-get-callsite.ts\',\n' +
' lineNumber: 2,\n' +
' column: 18\n' +
'}\n',
expected: /lineNumber: 8/,
operator: 'match'
}
Node.js v24.0.0-pre
Command: out/Release/node --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout "/Users/runner/work/node/node/dir%20with $unusual"chars?'åß∂ƒ©∆¬…`/test/parallel/test-util-getcallsites.js"
|
Re-run test in a folder whose name contains unusual chars:
test/es-module/test-typescript-transform.mjs#L1
--- stdout ---
::debug::starting to run execute a TypeScript file with transformation enabled
::debug::completed running execute a TypeScript file with transformation enabled
::debug::starting to run reconstruct error of a TypeScript file with transformation enabled and sourcemaps
::error title=reconstruct error of a TypeScript file with transformation enabled and sourcemaps,file=dir%20with $unusual"chars?'åß∂ƒ©∆¬…`/dir%20with $unusual"chars?'åß∂ƒ©∆¬…`/test/es-module/test-typescript-transform.mjs,line=20,col=1::[Error [ERR_TEST_FAILURE]: The input did not match the regular expression /test-enum-stacktrace\.ts:4:7/. Input:
'/Users/runner/work/node/node/dir%20with $unusual"chars?\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/transformation/test-enum-stacktrace.ts:5\n' +
'throw new Error("Hello, TypeScript!");\n' +
'^\n' +
'\n' +
'Error: Hello, TypeScript!\n' +
' at Object.<anonymous> (/Users/runner/work/node/node/dir%20with $unusual"chars?\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/transformation/test-enum-stacktrace.ts:5:7)\n' +
' at Module._compile (node:internal/modules/cjs/loader:1740:14)\n' +
' at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1832:10)\n' +
' at Module.load (node:internal/modules/cjs/loader:1474:32)\n' +
' at Function._load (node:internal/modules/cjs/loader:1286:12)\n' +
' at TracingChannel.traceSync (node:diagnostics_channel:322:14)\n' +
' at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)\n' +
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)\n' +
' at node:internal/main/run_main_module:33:47\n' +
'\n' +
'Node.js v24.0.0-pre\n'
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: The input did not match the regular expression /test-enum-stacktrace\.ts:4:7/. Input:
'/Users/runner/work/node/node/dir%20with $unusual"chars?\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/transformation/test-enum-stacktrace.ts:5\n' +
'throw new Error("Hello, TypeScript!");\n' +
'^\n' +
'\n' +
'Error: Hello, TypeScript!\n' +
' at Object.<anonymous> (/Users/runner/work/node/node/dir%20with $unusual"chars?\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/transformation/test-enum-stacktrace.ts:5:7)\n' +
' at Module._compile (node:internal/modules/cjs/loader:1740:14)\n' +
' at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1832:10)\n' +
' at Module.load (node:internal/modules/cjs/loader:1474:32)\n' +
' at Function._load (node:internal/modules/cjs/loader:1286:12)\n' +
' at TracingChannel.traceSync (node:diagnostics_channel:322:14)\n' +
' at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)\n' +
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)\n' +
' at node:internal/main/run_main_module:33:47\n' +
'\n' +
'Node.js v24.0.0-pre\n'
at TestContext.<anonymous> (file:///Users/runner/work/node/node/dir%2520with%20$unusual%22chars%3F'%C3%A5%C3%9F%E2%88%82%C6%92%C2%A9%E2%88%86%C2%AC%E2%80%A6%60/test/es-module/test-typescript-transform.mjs:27:3)
at async Test.run (node:internal/test_runner/test:932:9)
at async Test.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '/Users/runner/work/node/node/dir%20with $unusual"chars?\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/transformation/test-enum-stacktrace.ts:5\nthrow new Error("Hello, TypeScript!");\n^\n\nError: Hello, TypeScript!\n at Object.<anonymous> (/Users/runner/work/node/node/dir%20with $unusual"chars?\'åß∂ƒ©∆¬…`/test/fixtures/typescript/ts/transformation/test-enum-stacktrace.ts:5:7)\n at Module._compile (node:internal/modules/cjs/loader:1740:14)\n at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1832:10)\n at Module.load (node:internal/modules/cjs/loader:1474:32)\n at Function._load (node:internal/modules/cjs/loader:1286:12)\n...',
expected: /test-enum-stacktrace\.ts:4:7/,
op
|
Re-run test in a folder whose name contains unusual chars
Process completed with exit code 1.
|
Post Set up sccache
0% - 0 hits, 0 misses, 0 errors
|
Loading