-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
tests(no-options): add no options test #285
Conversation
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fokusferit @ematipico have a look
test/binCases/no-options/stdin.js
Outdated
expect(stdout[2]).toContain("Time: "); | ||
expect(stdout[4]).toContain(""); | ||
expect(stdout[5]).toContain("WARNING"); | ||
expect(stdout[6]).toContain("The \'mode\' option has not been set"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message should be The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment.
I know it's passing but it would be better to show the whole message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had initially thought to keep the whole message but then I read the blog post that production
is default mode
so we will change the latter part of this message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test for all modes, output error log accordingly. Don't see any one touching dev/prod or none, just a general one
7731487
to
bc6a96c
Compare
@dhruvdutt Thanks for your update. I labeled the Pull Request so reviewers will review it again. @ev1stensberg Please review the new changes. |
@ev1stensberg Updated the tests to add modes. |
What kind of change does this PR introduce?
Test
Did you add tests for your changes?
Yes
Summary
Improve env complex test to check if env array gets created with correct values.
Does this PR introduce a breaking change?
No
Other information
Related #124, #254