cba502e35f
Extract slot generation from book.ts into pure utility for unit testing. Add 8 API unit tests and 4 web component tests with coverage thresholds. Closes #39 Co-Authored-By: Paperclip <noreply@paperclip.ing>
21 lines
437 B
TypeScript
21 lines
437 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
globals: true,
|
|
coverage: {
|
|
provider: "v8",
|
|
include: ["src/**"],
|
|
exclude: ["src/test/**", "src/main.tsx"],
|
|
thresholds: {
|
|
lines: 50,
|
|
functions: 50,
|
|
},
|
|
},
|
|
},
|
|
});
|