Files
scrabble-game/ui/vitest.config.ts
Ilia Denisov 0284c9b83a Stage 7 (wip): tests + UI CI
- Vitest units: board replay, placement machine, premium parity, i18n key parity, FlatBuffers codec round-trips (19 tests)
- Playwright smoke (mock transport): guest -> lobby -> board -> place tile -> preview
- ui-test.yaml workflow: check/unit/build + bundle-size budget (67.5KB gzip < 100KB) + chromium e2e
- gateway transcode tests for games.list (seat display_name), pass, hint
- backend integration test for game.ListForAccount
2026-06-03 00:55:38 +02:00

12 lines
407 B
TypeScript

import { defineConfig } from 'vitest/config';
// Unit tests cover the pure client logic (no Svelte components, no network): the
// board replay, the placement state machine, premium/value maps, the FlatBuffers
// codec and the i18n catalog. Component/interaction coverage is the Playwright smoke.
export default defineConfig({
test: {
include: ['src/**/*.test.ts'],
environment: 'node',
},
});