Skip to content

update jest 30 error detecton - auto switch jest30 #1254

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

Merged
merged 2 commits into from
Jun 29, 2025

Conversation

connectdotz
Copy link
Collaborator

@connectdotz connectdotz commented Jun 29, 2025

This PR fixes our broken auto-switch for Jest 30 introduced in #1153. While manually setting the jest.useJest30 flag works as expected, the automatic detection feature broke after Jest 30's official release because our regex no longer matched the new error message. This update revises the regex, restoring the auto-switch's functionality and making the transition to Jest 30 seamless without needing to manually set the flag.

resolves #1250
resolves #1248

so the extension can detect jest 30 and auto setting useJest30 accordingly.
@connectdotz connectdotz changed the title update jest 30 error regex - auto switch jest30 update jest 30 error detecton - auto switch jest30 Jun 29, 2025
@coveralls
Copy link

coveralls commented Jun 29, 2025

Pull Request Test Coverage Report for Build 15959086058

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.188%

Totals Coverage Status
Change from base Build 15958534813: 0.0%
Covered Lines: 4114
Relevant Lines: 4120

💛 - Coveralls

@connectdotz connectdotz merged commit 79efc82 into jest-community:master Jun 29, 2025
11 checks passed
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.

[FEATURE] Support Jest 30 [BUG] Option "testPathPattern" was replaced by "--testPathPatterns"
2 participants