Zihao Xu
|
f15ee94559
|
test(web): add comprehensive frontend tests for Phase 3 (#129)
- Add component tests: EntityRow, RelationRow, StatItem, StatusBar, StatusWidget, TagList
- Add store tests: setting
- Enhance existing tests: socket (toast, alert handling), useGameInit (polling, initialization)
- Update vitest.config.ts to exclude config files from coverage
- Coverage improved from 13.39% to 32.49% (tested files achieve 95%+ coverage)
|
2026-02-04 01:01:58 -08:00 |
|
Zihao Xu
|
8bf5f64bc3
|
test(web): setup frontend test infrastructure (#60)
- Add testing dependencies (vitest, vue-test-utils, testing-library, jsdom, msw)
- Create vitest.config.ts with jsdom environment and coverage settings
- Create setup.ts with Pinia initialization and fake timers
- Add test scripts to package.json (test, test:run, test:coverage)
Closes #56, closes #57
|
2026-01-19 20:48:28 +08:00 |
|