Closed
Description
Please provide details about:
- What you're trying to do
I'm using a task runner that's constructing Node commands as such:
node --title svc-test:test ../../node_modules/ava/entrypoints/cli.mjs
- What happened
--title
is not valid for creating a worker.
✘ Internal error
Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --title
Error [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --title
at new NodeError (node:internal/errors:399:5)
at new Worker (node:internal/worker:192:13)
at createWorker (file:///Users/user/code/test/node_modules/.pnpm/ava@5.3.0/node_modules/ava/lib/fork.js:24:12)
at loadFork (file:///Users/user/code/test/node_modules/.pnpm/ava@5.3.0/node_modules/ava/lib/fork.js:84:39)
at pMap.concurrency.concurrency (file:///Users/user/code/test/node_modules/.pnpm/ava@5.3.0/node_modules/ava/lib/api.js:289:20)
at file:///Users/user/code/test/node_modules/.pnpm/p-map@5.5.0/node_modules/p-map/index.js:141:26
- What you expected to happen
I'd expect that Ava would filter out options that would throw. Probably related nodejs/node#41103 (comment)