-
Notifications
You must be signed in to change notification settings - Fork 452
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
How come "allowJs" is required in tsconfig.json when using jsWithTs? #1080
Comments
from what I understand about |
Hey @ahnpnl! Yes that's my understanding as well, but |
Hmm you are right, have you tried to debug to check what is the generated config that ts-jest creates ? Maybe the documentation is outdated 😀 updated: the code set allowJs in |
Please be aware that setting this property might cause a performance issue : #4294 ts-jest suggests another workaround : changing the transform regex in your jest config to select only ts files, and not ts and js |
Issue :
The flag seems to be programmatically set when using
ts-jest/presets/js-with-ts
yet the config docs says it is required. As is it when I run my tests (see log below).Expected behavior :
I would expect ts-jest to process
*.js
files when settingts-jest/presets/js-with-ts
without havingallowJs
intsconfig.json
.Debug log:
Without
allowJs
intsconfig.json
log file content
With
allowJs
intsconfig.json
log file content
Minimal repo :
Cheers!
The text was updated successfully, but these errors were encountered: