-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compilers option is not working #135
Comments
It doesn't use pass through to the CLI, it loads the mocha library programatically. I haven't used it for a while but I think you had the configuration correct the first time using https://github.com/pghalliday/grunt-mocha-test/blob/master/tasks/lib/MochaWrapper.js#L30 However, just looking at it now I see that we handle the require option differently and actually require the modules here. https://github.com/pghalliday/grunt-mocha-test/blob/master/tasks/lib/MochaWrapper.js#L15 I think this is because Mocha class doesn't do it and it is usually done by the CLI. I also notice that this is done before the |
I having a similar issue. In my project, I have a
|
I think this will require more investigation, but unfortunately I do not have the bandwidth available to look into this. The tests appear to still be passing, however Mocha has moved on a lot since this was implemented and it's possible there are issues with the integration with newer versions. If you wish to investigate this yourself and submit a pull request, I would suggest to start with updating the Mocha version and checking that the require tests still work. |
Hi,
Using command line
$ mocha --compilers js:babel-core/register
object spread operator "..." works.However, using grunt mochaTest, I cannot get the compiler option to be included.
I've tried as many permutations of the options configuation I can think of; "js:babel-core/register", "babel-register", using require, using compilers.
I even tried
grunt.config.set('mochaTest.options.compilers', 'js:babel-core/register')
but with no luck.What am I missing and how can I troubleshoot what CLI-command is actually being used?
The text was updated successfully, but these errors were encountered: