Commit f08cfc9
committed
test: migrate to vitest (jest->vi codemod, enzyme harness); 80/96 files green
- vitest.setup.js: enzyme-adapter-react-16, enzyme-to-json serializer, rAF/
matchMedia polyfills, automocks (electron/fs/electron-log/redux-logger/uuid)
- codemod jest.* -> vi.* across all test files and __mocks__
- install jsdom; pin cheerio 1.0.0-rc.3 override (enzyme 3 needs lib/utils subpath)
14 files still failing (done()-callbacks, ESM export reassignment, vi.mock default
keys, obsolete snapshots) — fixed next.1 parent f0b5ef1 commit f08cfc9
86 files changed
Lines changed: 1990 additions & 524 deletions
File tree
- __mocks__
- src
- __mocks__
- behaviours/DragAndDrop
- __mocks__
- __tests__
- components
- Canvas/__tests__/__snapshots__
- Search/__tests__
- SessionPanel/__tests__
- SettingsMenu/__tests__
- __tests__
- __snapshots__
- containers
- Canvas/__tests__
- __snapshots__
- CategoricalList/__tests__/__snapshots__
- Interfaces/__tests__
- __snapshots__
- SlidesForm/__tests__/__snapshots__
- __tests__
- __snapshots__
- contexts/__tests__
- ducks/modules
- __mocks__
- __tests__
- hooks/__test__
- selectors/__mocks__
- utils
- __mocks__
- __tests__
- protocol
- __mocks__
- __tests__
- protocol-validation
- migrations
- __tests__
- __snapshots__
- migrations/__tests__/__snapshots__
- validation/__tests__
- __snapshots__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments