-
Notifications
You must be signed in to change notification settings - Fork 27
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
Ability to use a mocharc config file. #9
Comments
@jamesopti Finding this issue helped me stop pulling my hair out! However I'm not having success with a
(importing the module in the test file works, but I want to move the require to the |
@jamesopti or @kierans can you give this a go with Thanks |
@Jack-Barry I am using 2.0.2 and my edit: tried with .json and it did not work either |
@lakeshadow0 Have you tried it with the |
@Jack-Barry Ah, I see. I just tried it, and got the error edit: after converting to JSON everything works except for "spec" configuration was not honored. I would expect that YAML would be supported since mocha supports it. I can offer some time to help out with regards to this if you could just point me in the right direction. |
There might be something out of whack with Basically, Mochapack is aiming to offload as much functionality as possible to Mocha, might have missed something in here as far as extracting the config file/determining which parser to use under the hood by Mocha's internals. |
Is there any support for using a mocharc file instead of mochapack.opts?
As of Mocha 6, mocha.opts is considered legacy and I find it easier to specify multiple configs in JSON instead of as command line arguments.
P.S. - Thanks for picking up support for this package!
The text was updated successfully, but these errors were encountered: