Add testing frameworks

This commit is contained in:
2026-01-11 12:06:06 +01:00
parent 36a16bf87b
commit 7302b8c1ba
6 changed files with 335 additions and 27 deletions

14
vitest.config.ts Normal file
View File

@ -0,0 +1,14 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "jsdom",
setupFiles: ["./tests/setup/vitest.setup.ts"],
include: ["tests/**/*.{test,spec}.?(c|m)[jt]s?(x)"],
css: false,
coverage: {
reporter: ["text", "html"],
reportsDirectory: "./coverage"
}
}
});