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

doc: add troubleshooting section about extremely long load times #4567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LoganTann
Copy link

@LoganTann LoganTann commented Oct 4, 2024

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?

  • Yes
  • No

Other information

N/A

 kulshekhar#4294

Solves kulshekhar#4294

Allowing ts-jest to process javascript files is rarely useful and mau cause extremely long delays when importing modules.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11177180749

Warning: This coverage report may be inaccurate.

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.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.265%

Totals Coverage Status
Change from base Build 11092387309: 0.0%
Covered Lines: 4759
Relevant Lines: 4937

💛 - Coveralls

@ahnpnl
Copy link
Collaborator

ahnpnl commented Oct 4, 2024

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?

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.

[Bug]: Huge performance drop when "allowJs": true is enabled in tsconfig
3 participants