src: add validation for CLI options that don't take an argument #67376
Annotations
3 errors and 1 notice
|
test-macOS
Process completed with exit code 2.
|
|
test-macOS:
test/sequential/test-watch-mode.mjs#L171
--- stdout ---
Test failure: 'should watch changes to a file'
Location: test/sequential/test-watch-mode.mjs:165:3
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ '/Users/runner/work/node/node/node/out/Release/node: --watch does not take an argument\n'
- ''
at TestContext.<anonymous> (file:///Users/runner/work/node/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:1113:7)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:1516:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:358:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '/Users/runner/work/node/node/node/out/Release/node: --watch does not take an argument\n',
expected: '',
operator: 'strictEqual',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/node/node/node/test/sequential/test-watch-mode.mjs
|
|
test-macOS:
test/sequential/test-debugger-debug-brk.js#L16
--- stderr ---
node:internal/assert/utils:273
throw err;
^
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert(stderr.includes('DEP0062'))
at test (/Users/runner/work/node/node/node/test/sequential/test-debugger-debug-brk.js:16:3)
at Object.<anonymous> (/Users/runner/work/node/node/node/test/sequential/test-debugger-debug-brk.js:21:1)
at Module._compile (node:internal/modules/cjs/loader:1737:14)
at Object..js (node:internal/modules/cjs/loader:1870:10)
at Module.load (node:internal/modules/cjs/loader:1469:32)
at Module._load (node:internal/modules/cjs/loader:1289:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:238:24)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '==',
diff: 'simple'
}
Node.js v25.0.0-pre
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/node/node/node/test/sequential/test-debugger-debug-brk.js
|
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|