isolatedModules after migrating global to transform config #3865
Unanswered
radahh-rest
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If you are using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our project we have around 900 files generated from a few API Swagger docs using OpenAPI generator and type checking these for every test (suite?) caused our tests to run extremely slowly. So we settled on using the
isolatedModules
feature to speed up tests, as we do need to include all files.As part of the version update from 28.x to 29.x, we converted the global config as directed however this does not appear to have any affect as the tests are now taking multiple minutes to complete and melting my CPU.
I also reverted to 28.x and tried the
transform
syntax and the same slowness is seen there also, so rather than being a specific regression in the version, I suspect that the transform code path is not handling isolatedModules.I did checkout the repo and take a quick look but I'm unfamiliar with the code and so far have found nothing obvious. If you have a few tips on tracing the code in the 28.x release I can see if there is a quick patch to contribute.
I found this unanswered issue on SO, to which I added a comment:
https://stackoverflow.com/questions/73687337/disable-type-checking-stopped-working-after-ts-jest-upgrade-to-29-0
Beta Was this translation helpful? Give feedback.
All reactions