-
Notifications
You must be signed in to change notification settings - Fork 459
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
Handle 'use strict' #71
Conversation
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.
Ok, I've tested with added node_modules
and everything fine, but we have to always add it in new test cases. But may be we have to improve our test script in order to avoid such small mistakes in future?
|
||
.vscode | ||
.idea | ||
**/node_modules |
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.
It's a bad idea. We need that folder in each integration test case, because without it, you'll always test version from root node_modules
.
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'll fix that right away
|
||
it('should show the error locations for "use strict" violations', () => { | ||
|
||
const result = runJest('../use-strict', ['--no-cache', '-t', 'Invalid Strict']); |
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.
What does -t
flag stands for? I haven't found any doc on that, and jest --help
haven't shown nothing also.
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.
It runs a test that matches the name specified.
Running jest --help
showed this part:
--testNamePattern, -t Run only tests with a name that matches the
regex pattern. [string]
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.
Really. My bad - somehow missed it.
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 found out about it today myself :)
fixes #69