-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a --node-arguments
flags
#2090
Comments
Thanks for opening this, @GMartigny. Should it be |
@novemberborn, yes you're right since |
I would prefer It should also be possible to set it as a AVA config property. |
As a string, an array or both ? |
Array. Are there use cases for specifying these flags as a one-off when you run AVA through the CLI, or should we only support them as a config property, since you'd want to use them all the time? |
I would say both. For example, you get a warning that you're using a deprecated Node.js API, but it doesn't show a stack trace, so you need to pass in a certain CLI argument to Node.js to force it to show where the warning came from. You only need that once. |
Off the top of my head, I see a difference between running test locally and through CI. Maybe for environment purpose too like no having the same flags on different node versions. |
@IssueHunt has funded $60.00 to this issue.
|
Supports `nodeArguments` configuration and `--node-arguments` on the CLI. Fixes #2090. Co-authored-by: Mark Wubben <mark@novemberborn.net>
@sindresorhus has rewarded $54.00 to @maximelkin. See it on IssueHunt
|
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:
Test Source
Environment
IssueHunt Summary
Backers (Total: $60.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: