Files
clawhub/vitest.config.ts
T
George Zhang a8a687eba2 [codex] streamline plugin publish flow (#1373)
* fix: streamline plugin publish flow

* fix: stabilize github package publish e2e

* test: fix clawdhub ci portability

* test: make settings route assertion portable

* test: fix ci typechecks
2026-03-29 02:37:58 -07:00

54 lines
1.2 KiB
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./vitest.setup.ts"],
testTimeout: 15_000,
hookTimeout: 15_000,
exclude: [
"**/node_modules/**",
"**/.vercel/output/**",
"**/.output/**",
"**/.nitro/**",
"**/dist/**",
"**/coverage/**",
"**/convex/_generated/**",
"packages/clawdhub/**",
"e2e/**",
"**/*.e2e.test.ts",
],
coverage: {
provider: "v8",
reporter: ["text", "html", "lcov"],
thresholds: {
lines: 70,
functions: 70,
branches: 70,
statements: 70,
},
include: [
"src/lib/**/*.{ts,tsx}",
"convex/lib/skills.ts",
"convex/lib/skillZip.ts",
"convex/lib/tokens.ts",
"convex/httpApi.ts",
"packages/schema/src/**/*.ts",
],
exclude: [
"node_modules/",
".vercel/output/",
".output/",
".nitro/",
"dist/",
"coverage/",
"convex/_generated/",
"packages/clawdhub/**",
"packages/schema/dist/",
"e2e/**",
],
},
},
});