Feat/unittest
MR Title test: add vitest-based unit test coverage for core logic
Description
- Replaced ad-hoc test execution with Vitest.
- Added
npmscripts:test,test:watch,test:coverage. - Added coverage tooling and ignored generated
coverage/artifacts. - Added unit tests for:
- CSV parsing (
parseInternsCSV,parseTeamSeedCSV,buildPreloadedTeams) - Corpus API service behavior (
corpusService) - Team state and operations (
teamStore,teamManager) - Standup verification logic (
verifyStandup) - Kept build compatibility (
npm run buildpasses).
Why
- Increases confidence in core business logic.
- Standardizes test execution for local dev and CI.
- Makes regressions easier to catch before deployment.
Validation
-
npm testpasses. -
npm run test:coveragepasses. -
npm run buildpasses. - Current suite: 32 tests across 6 test files.
Commits Included
-
7d8c3d1test: migrate to vitest runner and coverage scripts -
4ef50f2test: add unit coverage for CSV parsing and corpus service -
bdf6b94test: add team manager/store and standup verification tests