Files
notifkit/vitest.config.ts
T
coo1estguy d1076bfc1b ci: add GitHub Actions workflow and dynamic coverage badge generation
- Add .github/workflows/ci.yml with typecheck, lint, build, test, and badge publishing

- Add scripts/coverage-badge.mjs to generate shields.io endpoint JSON from coverage summary

- Update vitest.config.ts with json-summary reporter and include package sources

- Update README.md coverage badge to read from badges branch endpoint

- Ignore badge directory and ignore .next in eslint.config.js
2026-09-01 12:56:36 +05:30

28 lines
624 B
TypeScript

import { defineConfig } from "vitest/config";
import path from "node:path";
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
environment: "node",
testTimeout: 1200_000,
hookTimeout: 1200_000,
coverage: {
provider: "v8",
reporter: ["text", "json", "json-summary", "html"],
include: ["src/**", "packages/*/src/**"],
exclude: ["test-project/**", "tests/**", "vitest.config.ts"],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
},
});