Commit 6b789cc
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 cc3431b commit 6b789cc
2 files changed
Lines changed: 22 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 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
29 | 44 | | |
30 | 45 | | |
31 | 46 | | |
32 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
| |||
42 | 60 | | |
43 | 61 | | |
44 | 62 | | |
45 | | - | |
| 63 | + | |
| 64 | + | |
46 | 65 | | |
47 | 66 | | |
48 | 67 | | |
| |||
0 commit comments