Open LoganTann opened 1 day ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 11092387309: | 0.0% |
Covered Lines: | 4759 |
Relevant Lines: | 4937 |
Would you pls also update TROUBLESHOOTING.md
in https://github.com/kulshekhar/ts-jest/tree/main/website/versioned_docs and run npm run lint-prettier
to format files?
Summary
closes #4294
Allowing ts-jest to process JavaScript files is not typically beneficial, as ts-jest is a tool specifically designed to transform TypeScript files so that Jest can understand and test them.
Developers who are uninformed about this might mistakenly include JavaScript files in their transform regex, which could result in ts-jest passing all imported modules, including already-transpilled dependencies, to the TypeScript compiler.
This can lead to significant delays when importing modules, particularly during the initial run (without any cache).
This PR aims to add a new entry in the troubleshoot guide, in the hope that people having this issue mind find it from a google search result.
Test plan
No tests, as it is documentation.
Does this PR introduce a breaking change?
Other information
N/A