The frontend has no test runner. PR #236 added the first frontend test (frontend/src/services/sprintGraph.test.ts, 8 cases for extractPrs), but:
We need a real frontend test setup so that test (and future ones) actually run:
- add
vitest as a frontend devDependency
- add
frontend/vitest.config.ts that extends vite.config (needed because sprintGraph.ts imports ./api which uses import.meta.env)
- add a
test script in frontend/package.json
- wire a frontend test step into CI
- re-enable / confirm
sprintGraph.test.ts runs
Will be needed for the upcoming UI work (#184 / #185).
The frontend has no test runner. PR #236 added the first frontend test (
frontend/src/services/sprintGraph.test.ts, 8 cases forextractPrs), but:buildjob becausetsc -bcompiled it andvitestisn't a frontend dependency;*.test.ts(x)from the app build (tsconfig.app.json), so the test is no longer compiled nor executed.We need a real frontend test setup so that test (and future ones) actually run:
vitestas a frontend devDependencyfrontend/vitest.config.tsthat extendsvite.config(needed becausesprintGraph.tsimports./apiwhich usesimport.meta.env)testscript infrontend/package.jsonsprintGraph.test.tsrunsWill be needed for the upcoming UI work (#184 / #185).