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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
File changes not getting picked up in --watch mode (9.0.0-next.8) #803
Comments
Note: I did include a test when I submitted a PR for #764, but it looks like it was removed. |
It was removed because now we rely on |
hmm I found out that it's |
would you please try this build.zip ? Just need to extract it and replace |
Yes! The problem is fixed with this build, given 10+ permutations I couldn't get the test output to mismatch the test code. Thank you!! |
Hi @ahnpnl : Any chance of an updated beta release with this fix incorporated? I'm holding off on merging my branch b/c I don't want other devs to waste time on this. |
Hmm I鈥檓 waiting for |
Makes sense - Thanks for the update. |
Some updates: after testing with latest Related issues: kulshekhar/ts-jest#943 and jestjs/jest#11118 |
I will close this as fixed in next-10 . The other watch mode issue kulshekhar/ts-jest#943 was also for |
馃悰 Bug Report
This is almost the same as #764 - it's safe to consider this a regression in the new code, though the behavior is slightly different. I'm submitting a new issue to avoid confusion (since I know it's a different issue in new code).
When using 9.0.0-next.8 with isolatedModules: false, in
jest --watch
file changes are not being properly incorporated - it appears that the cache trails file changes.To Reproduce
If I have a test like the following, which fails to compile b/c the commented out line is missing
then run
jest --watch
, I receive an error (as expected). If I then uncomment theconst fixture
line and save, the file is rebuilt and the test is re-run, but it uses the original (erroring) code and I receive the original error. If I then change the code back (to the erroring state) and save, the non-erroring code is run and the test passes.If I exit jest after any of the changes and restart (or run jest not in watch mode), the current code is compiled and run, resulting in compile error or test success as expected.
Expected behavior
In
--watch
mode, code changes are compiled and run after the file is saved.Link to repo
https://github.com/johncrim/repro-ivy-jest-preset-angular/tree/bug/jest-watch-update
envinfo
The text was updated successfully, but these errors were encountered: