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

Specify path pattern within mocha.opts #2632

Closed
vekexasia opened this issue Dec 7, 2016 · 2 comments
Closed

Specify path pattern within mocha.opts #2632

vekexasia opened this issue Dec 7, 2016 · 2 comments

Comments

@vekexasia
Copy link

Is it possible to specify the file pattern within mocha.opts? I cant find a full-reference for the options supported within mocha.opts.

@ScottFreeCode
Copy link
Contributor

It should be possible to specify the file pattern within mocha.opts; mocha.opts is supposed to support everything the commandline supports (except maybe the flags passed to Node), which is why there isn't an explicit list -- basically its contents are appended to the arguments (or maybe it's prepended rather than appended, I forget which).

@Munter
Copy link
Member

Munter commented Jan 31, 2017

mocha.opts example with file patterns;

--option value
path/to/tests/**/*.js
test/**/*.jsx

@Munter Munter closed this as completed Jan 31, 2017
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

3 participants