utils/web_ui/vitest.config.ts
Krzysztof kuhy Rudnicki 2399227b4e Drop lint, type, coverage, line-cap gates
Bug-class-check: none — gate policy change (kuhy 2026-11-27)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZDq7ef5JyQd7Rx3Ju
2026-11-28 08:01:51 +01:00

20 lines
626 B
TypeScript

/// <reference types="vitest/config" />
import { getViteConfig } from "astro/config";
export default getViteConfig({
test: {
coverage: {
exclude: ["src/index.ts", "src/test/**", "src/**/*.d.ts"],
include: ["src/**/*.ts"],
provider: "v8",
// A shared layer that several repos depend on does not get to be the
// least-tested code in the tree. `.astro` files are outside `include`:
// the component is markup, covered by RangeSlider.astro.test.ts.
},
environment: "jsdom",
globals: true,
include: ["src/**/*.test.ts"],
setupFiles: ["./src/test/setup.ts"],
},
});