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

require jest-matchers in test env #1275

Merged

Conversation

aaronabramov
Copy link
Contributor

No description provided.

@ghost ghost added the CLA Signed ✔️ label Jul 9, 2016
@aaronabramov aaronabramov force-pushed the jest-matchers-in-test-environment branch from f45bcb2 to bc97686 Compare July 9, 2016 22:32
// `jest-matchers` should be required inside test environment (vm).
// Otherwise if they throw, the `Error` class will differ from the `Error`
// class of the test and `error instanceof Error` will return `false`.
runtime.requireModule(path.resolve(__dirname, './extend_jasmine_expect.js'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file was included in the coverage report and broke the coverage test. But in real world environment it'll most likely be excluded because it will be under node_modules

@aaronabramov aaronabramov force-pushed the jest-matchers-in-test-environment branch from bc97686 to 53ec69c Compare July 11, 2016 17:05
@aaronabramov aaronabramov merged commit 0a6c992 into jestjs:master Jul 11, 2016
@aaronabramov aaronabramov deleted the jest-matchers-in-test-environment branch July 11, 2016 17:22
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants