Commit 6cd9cd3
committed
fix(tests): stop e2e:updateSnaps swallowing its filter, and rebuilding twice
Two papercuts hit while regenerating baselines for the fix in this PR:
- vitest declares the flag as `-u, --update [type]` - an *optional* value,
which also accepts `new`/`all`/`none`. So in `--run -u <filter>`, cac
reads <filter> as the value of `-u`: the filter is dropped and the whole
suite silently runs in update mode. `e2e:updateSnaps` ended in `-u`, so
any filter a caller appends (as CLAUDE.md instructs) landed in exactly
that trap - which quietly rewrote an unrelated, flaky
`deleteShallowerBlock` baseline to a wrong value. Attaching the value as
`--update=true` makes it unambiguous, so filters stay filters.
- wasm-pack emits `packages/xl-typst-compiler/pkg/package.json`, which the
image content hash globbed, so building the wasm that docker-run.sh
itself requires invalidated the image. A fresh clone paid two full image
builds. `pkg` is now pruned alongside `dist`.1 parent 645886b commit 6cd9cd3
3 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
0 commit comments