Commit 9944dcd
committed
fix(tests): harden docker-run.sh argument and image-hash handling
Two papercuts hit while regenerating baselines for the fix in this PR:
- `vitest --run -u <filter>` parses <filter> as the *value* of `-u`, so the
filter is dropped and the whole suite runs in update mode. The
`e2e:updateSnaps` script ends in `-u`, so any filter a caller appends
(as CLAUDE.md instructs) lands in exactly that trap - which silently
rewrote an unrelated, flaky `deleteShallowerBlock` baseline. `-u` /
`--update` is now always passed last.
- 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 9944dcd
2 files changed
Lines changed: 17 additions & 3 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 | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
32 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | 48 | | |
| |||
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
45 | | - | |
| 58 | + | |
| 59 | + | |
46 | 60 | | |
47 | 61 | | |
48 | 62 | | |
| |||
0 commit comments