Skip to content
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

Merged
merged 1 commit into from
Dec 1, 2016
Merged

Handle 'use strict' #71

merged 1 commit into from
Dec 1, 2016

Conversation

kulshekhar
Copy link
Owner

fixes #69

@kulshekhar kulshekhar merged commit 22b5035 into master Dec 1, 2016
@kulshekhar kulshekhar deleted the allow-use-strict branch December 1, 2016 11:57
Copy link
Contributor

@Igmat Igmat left a 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
Copy link
Contributor

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.

Copy link
Owner Author

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']);
Copy link
Contributor

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.

Copy link
Owner Author

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]

Copy link
Contributor

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.

Copy link
Owner Author

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 :)

Igmat added a commit that referenced this pull request Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ts-jest breaks strict mode
2 participants