jest-community / vscode-jest

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

Support Jest v30 #1153

Open connectdotz opened 1 month ago

connectdotz commented 1 month 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 1 month 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 4 weeks 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 2 weeks ago

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