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

Support Jest v30 #1153

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Conversation

connectdotz
Copy link
Collaborator

@connectdotz connectdotz commented Jun 6, 2024

This PR mainly added the ability to auto-switch the command-line option --TestPathPattern to --TestPathPatterns when Jest 30 is detected.

We detect Jest 30 by looking for the error string pattern during the Jest run. Once detected, the jest.useJest30 option is set accordingly and the process will be re-run with the correct options.

Users can also set this option themselves just like any jest customization.


Resolve #1109

@coveralls
Copy link

coveralls commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9394770034

Details

  • 17 of 17 (100.0%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 98.013%

Files with Coverage Reduction New Missed Lines %
src/test-provider/test-item-data.ts 3 96.79%
Totals Coverage Status
Change from base Build 9377054538: -0.06%
Covered Lines: 4005
Relevant Lines: 4014

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9407856268

Details

  • 20 of 20 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.006%) to 98.063%

Totals Coverage Status
Change from base Build 9377054538: -0.006%
Covered Lines: 4008
Relevant Lines: 4014

💛 - Coveralls

@connectdotz
Copy link
Collaborator Author

Apparently, this failed for Windows users, see jestjs/jest#15109

@connectdotz
Copy link
Collaborator Author

This bug is fixed (jestjs/jest#15235) and deployed in [email protected]. 👏 We can merge this in now.

@connectdotz connectdotz merged commit 6daff86 into jest-community:master Aug 8, 2024
10 of 11 checks passed
@connectdotz connectdotz deleted the jest-v30-support branch August 8, 2024 18:03
@johnwiseheart
Copy link

🎉 Thank you for your persistence @connectdotz !

@connectdotz
Copy link
Collaborator Author

Hey everyone,

The fix is out! Check out the pre-release v6.3.0-next and let us know if you run into any issues.

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.

"Click to run tests" doesn't work on Jest v30
3 participants