src: parse dotenv with the rest of the options #54913
Open
Annotations
3 errors and 1 notice
Test:
test/sequential/test-watch-mode.mjs#L171
--- stdout ---
▶ watch mode
✖ should watch changes to a file (51.064329ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'node:path:1168\n' +
+ ' validateString(path, `paths[${i}]`);\n' +
+ ' ^\n' +
+ '\n' +
+ 'TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received an instance of Array\n' +
+ ' at resolve (node:path:1168:7)\n' +
+ ' at start (node:internal/main/watch_mode:78:24)\n' +
+ ' at init (node:internal/main/watch_mode:148:15)\n' +
+ ' at node:internal/main/watch_mode:160:1 {\n' +
+ " code: 'ERR_INVALID_ARG_TYPE'\n" +
+ '}\n' +
+ '\n' +
+ 'Node.js v24.0.0-pre\n' +
+ 'node:events:485\n' +
+ " throw er; // Unhandled 'error' event\n" +
+ ' ^\n' +
+ '\n' +
+ 'Error: write EPIPE\n' +
+ ' at target._send (node:internal/child_process:877:20)\n' +
+ ' at target.send (node:internal/child_process:751:19)\n' +
+ ' at reportModuleToWatchMode (node:internal/modules/cjs/loader:278:13)\n' +
+ ' at Function._load (node:internal/modules/cjs/loader:1110:5)\n' +
+ ' at TracingChannel.traceSync (node:diagnostics_channel:322:14)\n' +
+ ' at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)\n' +
+ ' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)\n' +
+ ' at node:internal/main/run_main_module:36:49\n' +
+ "Emitted 'error' event on process instance at:\n" +
+ ' at node:internal/child_process:881:39\n' +
+ ' at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {\n' +
+ ' errno: -32,\n' +
+ " code: 'EPIPE',\n" +
+ " syscall: 'write'\n" +
+ '}\n' +
+ '\n' +
+ 'Node.js v24.0.0-pre\n'
- ''
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/sequential/test-watch-mode.mjs:171:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:935:9)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:1320:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:297:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'node:path:1168\n validateString(path, `paths[${i}]`);\n ^\n\nTypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received an instance of Array\n at resolve (node:path:1168:7)\n at start (node:internal/main/watch_mode:78:24)\n at init (node:internal/main/watch_mode:148:15)\n at node:internal/main/watch_mode:160:1 {\n code: \'ERR_INVALID_ARG_TYPE\'\n...',
expected: '',
operator: 'strictEqual'
}
::debug::starting to run watch mode
::debug::starting to run should watch changes to a file
::error title=should watch changes to a file,file=test/sequential/test-watch-mode.mjs,line=171,col=12::Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
+ actual - expected
+ 'node:path:1168\n' +
+ ' validateString(path, `paths[${i}]`);\n' +
+ ' ^\n' +
+ '\n' +
+ 'TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received an instance of Array\n' +
+ ' at resolve (node:path:1168:7)\n' +
+ ' at start (node:internal/main/watch_mode:78:24)\n' +
+ ' at init (node:internal/main/watch_mode:148:15)\n' +
+ ' at node:internal/main/watch_mode:160:1 {\n' +
+ " code: 'ERR_INVALID_ARG_TYPE'\n" +
+ '}\n' +
+ '\n' +
+ 'Node.js v24.0.0-pre\n' +
+ 'node:events:485\n' +
+ " throw er; // Unhandled 'error' event\n" +
+ ' ^\n' +
+ '\n' +
+ 'Error: write EPIPE\n' +
+ ' at target._send (node:internal/child_process:877:20)\n' +
+ ' at target.send (node:internal/child_process:751:19)\n' +
+ ' at reportModuleToWatchMode (node:internal/modules
|
Test:
test/sequential/test-watch-mode-inspect.mjs#L83
--- stderr ---
1
--- stdout ---
[test] Connecting to a child Node process
[test] Testing /json/list
[err] node:path:1168
[err] validateString(path, `paths[${i}]`);
[err] ^
[err]
[err] TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received an instance of Array
[err] at resolve (node:path:1168:7)
[err] at start (node:internal/main/watch_mode:78:24)
[err] at init (node:internal/main/watch_mode:148:15)
[err] at node:internal/main/watch_mode:160:1 {
[err] code: 'ERR_INVALID_ARG_TYPE'
[err] }
[err]
[err] Node.js v24.0.0-pre
[err]
[err] Debugger listening on ws://127.0.0.1:43761/7567d13b-77ae-4c0a-ae9b-45fe9248ea67
[err] For help, see: https://nodejs.org/en/docs/inspector
[err]
[err] node:events:485
[err] throw er; // Unhandled 'error' event
[err] ^
[err]
[err] Error: write EPIPE
[err] at target._send (node:internal/child_process:877:20)
[err] at target.send (node:internal/child_process:751:19)
[err] at reportModuleToWatchMode (node:internal/modules/cjs/loader:278:13)
[err] at Function._load (node:internal/modules/cjs/loader:1110:5)
[err] at TracingChannel.traceSync (node:diagnostics_channel:322:14)
[err] at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
[err] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
[err] at node:internal/main/run_main_module:36:49
[err] Emitted 'error' event on process instance at:
[err] at node:internal/child_process:881:39
[err] at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
[err] errno: -32,
[err] code: 'EPIPE',
[err] syscall: 'write'
[err] }
[err]
[err] Node.js v24.0.0-pre
[err]
[out] safe to debug now
[out]
▶ watch mode - inspect
✖ should start debugger on inner process (52.228283ms)
Error: connect ECONNREFUSED 127.0.0.1:43761
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 43761
}
::debug::starting to run watch mode - inspect
::debug::starting to run should start debugger on inner process
::error title=should start debugger on inner process,file=test/sequential/test-watch-mode-inspect.mjs,line=43,col=3::Error [ERR_TEST_FAILURE]: connect ECONNREFUSED 127.0.0.1:43761
at async Promise.all (index 0) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: Error: connect ECONNREFUSED 127.0.0.1:43761
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 43761
}
}
[err] node:path:1168
[err] validateString(path, `paths[${i}]`);
[err] ^
[err]
[err] TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received an instance of Array
[err] at resolve (node:path:1168:7)
[err] at start (node:internal/main/watch_mode:78:24)
[err] at init (node:internal/main/watch_mode:148:15)
[err] at node:internal/main/watch_mode:160:1 {
[err] code: 'ERR_INVALID_ARG_TYPE'
[err] }
[err]
[err] Node.js v24.0.0-pre
[err]
[out] pid is 229517
[out]
✖ should prevent attaching debugger with SIGUSR1 to outer process (44.770787ms)
Error: kill ESRCH
at process.kill (node:internal/process/per_thread:219:13)
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/sequential/test-watch-mode-inspect.mjs:83:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:935:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:633:7) {
errno: -3,
code: 'ESRCH',
syscall: 'kill'
}
✖ watch mode - inspect (99.63116ms)
::debug::starting to run should prevent attaching debugger with SIGUSR1 to outer process
::error title=should prevent attaching debugger with SIGUSR1 to outer process,file=test/sequential/test-watch-mode-
|
Test
Process completed with exit code 2.
|
Post Set up sccache
0% - 0 hits, 0 misses, 0 errors
|
Loading