jest-community / vscode-jest

The optimal flow for Jest based testing in VS Code
MIT License
2.84k stars 294 forks source link

Support Jest v30 #1153

Closed connectdotz closed 3 months ago

connectdotz commented 5 months ago

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 commented 5 months ago

Pull Request Test Coverage Report for Build 9394770034

Details


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

💛 - Coveralls
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9407856268

Details


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

💛 - Coveralls
connectdotz commented 5 months ago

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

connectdotz commented 3 months ago

This bug is fixed (jestjs/jest#15235) and deployed in jest@30.0.0-alpha.6. 👏 We can merge this in now.

johnwiseheart commented 3 months ago

🎉 Thank you for your persistence @connectdotz !

connectdotz commented 3 months ago

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.