refactor: update verification and testing commands for clarity and consistency

This commit is contained in:
GitHub Actions
2025-12-02 22:08:51 +00:00
parent a1b4f006aa
commit 355992e665
2 changed files with 8 additions and 5 deletions

View File

@@ -35,10 +35,12 @@ You do not just "make it work"; you make it **feel** professional, responsive, a
- Verify tests pass with `npm run test`.
3. **Verification (Definition of Done)**:
- Run `npm run lint` and fix warnings and errors (so they don't become warnings).
- Run `npm run test` (Ensure no regressions).
- Run `npm run type-check`
- **MANDATORY**: Run `/projects/Charon/scripts/frontend-test-coverage.sh` as well as and fix any issues immediately and make sure coverage goals are met or exceeded.
- Run `npm run lint` and fix all errors.
- Run `npm run type-check`.
- **Test Execution**: Run `npm run test:ci`.
- *Note*: This runs tests in non-interactive mode. If tests fail, analyze the output and fix them.
- **Coverage**: Run `npm run check-coverage`.
- Ensure the script executes successfully and coverage goals are met.
</workflow>
<constraints>

View File

@@ -9,8 +9,9 @@
"type-check": "tsc --noEmit",
"lint": "eslint . --report-unused-disable-directives",
"preview": "vite preview",
"test": "vitest",
"test:ci": "vitest run",
"test:ui": "vitest --ui",
"check-coverage": "bash ../scripts/frontend-test-coverage.sh",
"pretest:coverage": "npm ci --silent && node -e \"require('fs').mkdirSync('coverage/.tmp', { recursive: true })\"",
"test:coverage": "vitest --coverage --coverage.provider=istanbul --coverage.reporter=json-summary --coverage.reporter=lcov --coverage.reporter=text",
"e2e:install": "npx playwright install --with-deps",