Test screen logic under happy-dom so filter and error-code mistakes fail in CI.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -125,9 +125,10 @@ say so explicitly in the change description.
|
||||
is empty. Reset deletes through the API, which deletes the save files. Headless AppHost
|
||||
sets `HSchool:AllowSaveReload` so tests can `POST /api/dev/reload-schools` without killing
|
||||
the shared fixture.
|
||||
- The screens have no unit tests — a DOM environment would cost a dependency the project does not
|
||||
have. Verify UI changes by running the app. Dictionaries and date formatting are covered in
|
||||
Vitest (`i18n/strings.test.ts`, `format/gameTime.test.ts`).
|
||||
- Screen logic is covered in Vitest under happy-dom (`ui/*.test.ts`): people filters and the
|
||||
pager, the create dialog (core stays on, map reset, submit busy), planner rejection text, and
|
||||
the payroll-cap message. Layout and styles are still verified by running the app. Dictionaries
|
||||
and date formatting stay in `i18n/strings.test.ts` and `format/gameTime.test.ts`.
|
||||
|
||||
## Dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user