A simple TypeScript calculator demonstrating Vitest with JSON report generation for Gaffer.
npm install# Run tests (basic)
npm test
# Run tests with JSON output
npm run test:json- Vitest JSON:
reports/vitest-results.json
curl -X POST https://app.gaffer.sh/api/upload \
-H "X-API-Key: $GAFFER_UPLOAD_TOKEN" \
-F "files=@reports/vitest-results.json"See .github/workflows/vitest.yml for the full workflow.