pnpm install
-
pnpm test
; watch mode will start - Edit
index.test.ts
(e.g., replaceexpect(t)
withexpect(t+1)
). - Watch mode will re-run the test and fail, as expected.
- Hit
u
to update the baseline, but the progress will show all tests doubled, like:
Then at the final screen, doubled again:RERUN update snapshot ❯ index.test.ts (10) ✓ test 0 503ms ✓ test 1 504ms ✓ test 2 504ms ✓ test 3 504ms ✓ test 4 505ms ⠦ test 5 ⠦ test 6 ⠦ test 7 ⠦ test 8 ⠦ test 9 ❯ index.test.ts (10) ✓ test 0 503ms ✓ test 1 504ms ✓ test 2 504ms ✓ test 3 504ms ✓ test 4 505ms ⠴ test 5 ⠴ test 6 ⠴ test 7 ⠴ test 8 ⠴ test 9
RERUN update snapshot ✓ index.test.ts (10) 1007ms ✓ index.test.ts (10) 1007ms Snapshots 60 updated Test Files 1 passed (1) Tests 10 passed (10) Start at 12:36:47 Duration 1.01s PASS Waiting for file changes... press h to show help, press q to quit
- Hit
r
, and the duplication goes away.
j
vitest-watch-mode-bug
public
0 stars
0 forks
0 issues
Commits
List of commits on branch main.Unverified
2a7ce1eaeb5119ca7ea86a480a8848b3c8ea6241Add instructions
jjakebailey committed a year ago
Unverified
cada31a597007c84019d77a84ddb3dd5bd490acblicense
jjakebailey committed a year ago
Unverified
0511204ed081504f40252722f326095c158a2451minimize
jjakebailey committed a year ago
Unverified
2ccaa844a12a49114c0704b9f008890351e8810fminimize
jjakebailey committed a year ago
Unverified
367d2ffabdf8efd6629eb749b23522978df6c83bMore stuff
jjakebailey committed a year ago
Unverified
c14221a0aa434c66259f634309a82c1132a86dd4it works
jjakebailey committed a year ago