Set up unit testing infrastructure

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>
This commit was merged in pull request #42.
This commit is contained in:
groombook-paperclip[bot]
2026-03-18 01:55:02 +00:00
committed by GitHub
parent d718821515
commit cba502e35f
10 changed files with 1046 additions and 26 deletions
+8 -1
View File
@@ -2,6 +2,13 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
passWithNoTests: true,
coverage: {
provider: "v8",
include: ["src/lib/**"],
thresholds: {
lines: 80,
functions: 80,
},
},
},
});