-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Single file testing doesn't work correctly after migration to Jest 22 #5527
Comments
Hey @aakula-edmunds, it looks like the issue on your branch happens on Jest 21 as well and is related to how you have the enzyme serializer configured (not a bug) If you have any more questions, I'm happy to help more on stackoverflow or our discord channel |
@rickhanlonii thanks a lot for your answer, but how is a double test related to enzyme configuration? If enzyme is removed at all jest still tries to execute the same test twice. Maybe it wasn't clear in the original message from @aakula-edmunds, but when you try to call |
Ah, I see! I can confirm this (introduced in 22.0.0) When you run Thanks for following up @adaniliuk! |
Looks like this was introduced here With that change, we will run the tests on the files passed in and ignore the matchers |
@aakula-edmunds @adaniliuk thanks for the report, this will be fixed in the next release |
@rickhanlonii great, thanks a lot for a quick turn around! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug?
a bug
What is the current behavior?
Jest tries running test 2 times instead of 1
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can
yarn install
andyarn test
.https://github.com/aakula-edmunds/sampleJestIssue
What is the expected behavior?
A test should be run only once.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
https://github.com/aakula-edmunds/sampleJestIssue/tree/master/archetype/config/jest
The text was updated successfully, but these errors were encountered: