Update testing framework to Vitest (#4)

This commit is contained in:
2025-09-26 11:49:44 -04:00
committed by GitHub
parent 5bc6debe30
commit 174cae8610
12 changed files with 2667 additions and 95 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["dist/**", "node_modules/**"],
sequence: { hooks: "list" },
globals: false,
testTimeout: process.env.SMOKE === "1" ? 30000 : 5000,
coverage: {
provider: "v8",
reportsDirectory: "coverage",
reporter: ["text", "lcov"],
},
},
});