first commit

This commit is contained in:
Matt Kane
2026-04-01 10:44:22 +01:00
commit 43fcb9a131
1789 changed files with 395041 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
environment: "node",
include: ["tests/**/*.test.ts"],
// Server integration tests (cli, client, smoke) start real Astro dev
// servers and need a full workspace build — run them in a dedicated
// CI job, not via `pnpm test`.
// The fixture has symlinked node_modules that contain test files
// from transitive deps (zod, emdash) — exclude them too.
exclude: [
"tests/integration/smoke/**",
"tests/integration/cli/**",
"tests/integration/client/**",
"tests/integration/fixture/**",
],
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
thresholds: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
},
},
},
});