avajs/ava









The issue has been solved
Add a `--node-arguments` flags #2090
GMartigny posted onGitHub
Description
It could be useful to be able to de define the flags of the Node process running AVA. A comment by @novemberborn scratch the surface, but apparently it never got raised as a request. Any compatible Node flag could be listed.
Adding the --nodeArgs``--node-args
--node-arguments
to AVA could allow the user to execute Node with some needed flags.
(eg: ava --node-arguments --experimental-report
)
It should also be available as an AVA config property:
{
"ava": {
"nodeArguments": [
"--experimental-report",
"- --custom-arg"
]
}
}
Test Source
process.execArgv.includes("--experimental-policy"); // <= Never true
Environment
- Ubuntu v16.04
- Node v11.9.0
- AVA v1.4.1