-
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
Support helpers
globs
#2105
Comments
Do you plan to make the default helpers pattern be Also is this a good place to query about the plans for |
No. By default, the only helper files are those matched by the test file patterns that start with an underscore. Given how test file extensions can be configured, it's too confusing to have default
Ah I forgot to note that in the release. These files are no longer ignored, and will now be treated as test files. You'll have to exclude them in |
* Add test to ensure matched test files with the wrong extension are not treated as test files * Update files and sources configuration docs * Combine isTest() and isSource() isSource() calls isTest(), so it's more efficient to classify whether a file is either in a single call. * Don't rerun tests when detecting changes to files that are not tests, helpers or sources Since ignore patterns are no longer passed to Chokidar, if a file is not a test, helper or source, then tests do not need to be re-run. * Support helper glob configuration Fixes #2105.
#2103 removes AVA's support for finding helper files inside
helpers
directories. Instead we'll support this by letting users specify glob patterns to find helpers:helpers
configuration. If specified, it must be an array containing at least one patternhelpers
patterns must be treated as helpersbabel: false
andcompileEnhancements: false
), optimize by not finding helpers: just make sure test files that match the helper patterns are not treated as testsThe text was updated successfully, but these errors were encountered: