Skip to content

Frontend tests (vitest) + CI - #6

Merged
Addi90 merged 2 commits into
masterfrom
feat/frontend-tests
Sep 4, 2026
Merged

Addi90 merged 2 commits into
masterfrom
feat/frontend-tests

Conversation

@Addi90

@Addi90 Addi90 commented Sep 4, 2026

Copy link
Copy Markdown
Owner
  • Vitest 2.x unit tests for the pure frontend logic: format, power-format, colormap, stream math (pause mask, NP, kcal), i18n — 29 tests, all colocated in src/lib/
  • CI: existing workflow (renamed to "tests") gains a Node 22 frontend job running npm test on push/PR, next to the pytest job
  • Component tests deliberately skipped (jsdom + testing-library not worth it yet)

vitest 2.x (node env, zero config) + 5 test files / 29 tests:
format, power-format, colormap, settings stream math (pause mask,
NP, kcal), i18n language switching. Components untested — would need
jsdom + testing-library, skipped (YAGNI).
Extends the existing workflow (now named "tests") with a Node 22
frontend job (npm ci + npm test) on push/PR; updates AGENTS.md test
notes.
@Addi90
Addi90 merged commit cd83f92 into master Sep 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant