We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I faced the situation that the 'development' configuration is loaded rather than 'test' when run tests.
$ grunt test
I found the cause is in Gruntfile.js
process.env.NODE_ENV = process.env.NODE_ENV || 'development'; var config = require('./lib/config/config');
Because this code(from fix(gruntfile): update gruntfile to use port from config #121), the configuration is loaded before NODE_ENV is set to 'test'
This problem is critical to model tests and other unit tests not using a repository test double.
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
62d8492
@DaftMonk Good, Thank you!
No branches or pull requests
I faced the situation that the 'development' configuration is loaded rather than 'test' when run tests.
I found the cause is in Gruntfile.js
Because this code(from fix(gruntfile): update gruntfile to use port from config #121), the configuration is loaded before NODE_ENV is set to 'test'
This problem is critical to model tests and other unit tests not using a repository test double.
The text was updated successfully, but these errors were encountered: