Repository navigation
Commit 7d56ac5
committed
test(frontend): replace network mocks with MSW.
Fixes #34.
- Introduced a workaround for the "entry point 'msw' cannot be marked as external" error.
- Enabled test isolation, otherwise MSW mocks would cross over to other tests.
- Removed `vitest.config.ts`, because it had no effect, and only duplicated configuration.
Because Vitest does not work currently in VSCode, I will revisit this problem later.
- Configured a more meaningful test timeout (5s). I will increase it if it causes flakiness.
- Will now always print the full DOM on testing errors. This is actually more helpful than saving
on verbosity.1 parent 65d8c19 commit 7d56ac5
17 files changed
Lines changed: 782 additions & 374 deletions
File tree
- contenttree-frontend
- src
- app
- api
- tree-page
- node-delete-dialog
- node-editor-dialog
- tree-toolbar
- tree
- test-utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments