type changes not updated during watch mode
See original GitHub issueIssue
When you make changes to the types, e.g. renaming a type, the changes cause the test to fail, even if the change actually works fine.
Need to quit jest watch and start again for the changes to be picked up correctly.
causes
My guess is that during rename, multiple files are affected and ts-jest
only detect one file has been changed, so the cache of other files are not invalidated, thus containing outdated information.
This happens whenever I make changes to multiple files and save them at the same time.
Another example would be moving a type from one file to another.
Minimal repo
I encounter this in multiple situations. For example, https://github.com/unional/progress-str
To reproduce the issue, you need to run the test in watch mode (npm run watch
in the repo above),
and then make some changes such as rename or move types.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:21
- Comments:26
Top GitHub Comments
Also running into this issue with the most recent version of ts-jest (28.0.3), please consider reopening this issue until it is fixed. Thanks a lot.
Having this too. Might this issue be reopened ?