utils/web_ui/vitest.config.ts
Krzysztof kuhy Rudnicki decf5824e6
Some checks failed
dependency freshness / dependencies on newest stable (push) Waiting to run
file length / file-length (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
web_ui tests / test (push) Has been cancelled
web_ui 0.5.0: port to Astro + custom element
RangeSlider.astro + <range-slider> replace the React component.
Pure helpers, tokens.css and range-slider.css are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWYdwRAtMg7ki6TKxuU
2026-11-01 20:03:45 +01:00

21 lines
708 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.
thresholds: { branches: 100, functions: 100, lines: 100, statements: 100 },
},
environment: "jsdom",
globals: true,
include: ["src/**/*.test.ts"],
setupFiles: ["./src/test/setup.ts"],
},
});