You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AVA should support a way to ignore a resolved configuration, for example a (mono-)repo's ava.config.js.
Possible solutions:
Have configurations in a directory take precedence over a parent configuration (e.g. "ava" field in a package.json and a root ava.config.json)
Add a root: boolean option to configs that specifies not to search for parent configurations
Add a CLI flag to ignore parent configurations (e.g. npx ava --ignore-parent-configs)
If the resolved configuration contains the current test in its "ignores", skip it
Rationale
I'm trying to update the examples to AVA 6 (#2993), but they resolve the repo's ava.config.js when trying to run them:
…/examples/endpoint-testing
$ npx ava
⚠ Using configuration from …/ava.config.js
✘ Couldn’t find any files to test
$ npx ava test.js
⚠ Using configuration from …/ava.config.js
✔ get /user
─
1 tests passed
Feature Request
AVA should support a way to ignore a resolved configuration, for example a (mono-)repo's
ava.config.js
.Possible solutions:
"ava"
field in apackage.json
and a rootava.config.json
)root: boolean
option to configs that specifies not to search for parent configurationsnpx ava --ignore-parent-configs
)"ignores"
, skip itRationale
I'm trying to update the examples to AVA 6 (#2993), but they resolve the repo's
ava.config.js
when trying to run them:The TypeScript examples have a custom config:
This results in the tests failing due to conflicting configs:
Attempting to ignore the examples in
ava.config.js
doesn't work:The text was updated successfully, but these errors were encountered: