mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-28 08:49:21 +01:00
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
20 lines
626 B
TypeScript
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"],
|
|
},
|
|
});
|