You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When saving in a regular test file index.test.ts after making changes, the type test file index.test-d.ts is being rerun instead of the current test file index.test.ts.
Current solution is to save, wait for the rerun of the other file, and save again (without making any changes).
murolem
changed the title
Type test file is being rerun instead of the regular test file when using typecheck and saving after changes in the regular test file
Type test file is being rerun (with typecheck enabled) instead of the regular test file when saving after changes
Jan 21, 2024
Describe the bug
When saving in a regular test file
index.test.ts
after making changes, the type test fileindex.test-d.ts
is being rerun instead of the current test fileindex.test.ts
.Current solution is to save, wait for the rerun of the other file, and save again (without making any changes).
Reproduction
Repo: https://github.com/murolem/vitest-issue-wrong-file-rerun-on-save-with-typecheck-enabled
Steps:
npm run test
. Note both tests being run.index.test.ts
and make some changes, e.g. make a comment.Expected:
Rerun occurs on the current test file
index.test.ts
.Actual:
Rerun occurs on the type test file
index.test-d.ts
.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: