Commit ca6b13d
committed
Tooling: Switch vitest to happy-dom (faster DOM env)
- happy-dom's per-file DOM-environment setup is ~half jsdom's cost (the dominant phase for our ~3300 tests) - ~22% faster on a plain/watch run; the gated (coverage) run is a smaller but real win. All 3318 tests pass under it.
- jsdom kept installed as the per-file fallback (`// @vitest-environment jsdom`) since happy-dom implements a subset of its APIs; knip is fine with it.
- happy-dom added via `--trust-policy-exclude chokidar --trust-policy-exclude semver` (both mainstream transitive deps whose old versions predate npm provenance; see pnpm-workspace.yaml).1 parent 19a090e commit ca6b13d
3 files changed
Lines changed: 58 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments