Commit e7ee1bb
authored
Vitest 5 (#3368)
https://vitest.dev/blog/vitest-5.html
https://vitest.dev/guide/migration/
Two changes needed:
- Switch the date-picker’s partial text assertion to
`toMatchTextContent`. `toHaveTextContent` now requires exact text, and
the button includes the icon’s “Select” title.
- Ignore `.vitest/` and include it in CI artifacts. Automatic failure
screenshots now go there instead of following our existing
`screenshotDirectory` setting.
The promised perf improvements turned out to be pretty small:
| Suite | 4.1.11 | 5.0.0, upgrade only | Change |
|---|---:|---:|---:|
| Node | 1.39s | 1.33s | −4.1% |
| Chromium | 4.15s | 4.15s | Unchanged |
| Node + all three browsers | 9.13s | 8.61s | −5.6% |
Second commit enables
[`fsModuleCache`](https://vitest.dev/config/fsmodulecache), as
recommended by `vitest doctor`. Warm Node runs drop to **1.09s**, about
22% faster than v4. This mainly helps local test runs.1 parent 0a4aca0 commit e7ee1bb
6 files changed
Lines changed: 159 additions & 152 deletions
File tree
- .github/workflows
- app/components/form/fields
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments