Skip to content
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

Allow excludePatterns to be overwritten #2020

Closed
RedKenrok opened this issue Jan 17, 2019 · 1 comment
Closed

Allow excludePatterns to be overwritten #2020

RedKenrok opened this issue Jan 17, 2019 · 1 comment

Comments

@RedKenrok
Copy link

Ava is a great library and enjoy using it. I would love to be able to overwrite the excludePatterns property of the lib/ava-files.js script as it currently always set to the default of [ '!**/node_modules/**', '!**/fixtures/**', '!**/helpers/**' ] at line 118. Because I use the helpers directory name in my library and would like my test directory to follow a similar structure. As a result the directories becomes easier to navigate and allowing me to prepend an underscore to the actual test helpers would help it stand out and pin it to the top of the test directory.

Currently what my project directory looks like:

...
├── examples/
├── library/
│   ├── helpers/
│   └── index.js
└── test/
     ├── examples/
     ├── helpers/
     └── library/
         ├── _helpers/
         └── index.js

What I would to be able to make my project directory look like:

...
├── examples/
├── library/
│   ├── helpers/
│   └── index.js
└── test/
     ├── _helpers/
     ├── examples/
     └── library/
         ├── helpers/
         └── index.js
@novemberborn
Copy link
Member

Agreed, see #909. I've been meaning to summarize my thoughts on our various globbing issues into a concrete proposal but haven't gotten round to it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants