1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-24 10:25:57 -04:00

refactor: full typescript migration (#174)

This commit is contained in:
2026-01-06 21:08:36 -05:00
committed by GitHub
parent 4ce0fbb869
commit 0f9bca8bf5
32 changed files with 4803 additions and 2903 deletions
+32
View File
@@ -0,0 +1,32 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
// Run tests in Node environment
environment: "node",
// Test file patterns
include: ["tests/**/*.test.ts"],
// Coverage configuration
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
include: ["src/**/*.ts"],
exclude: [
"src/generated/**",
"src/**/*.d.ts",
"**/*.test.ts",
"scripts/**",
],
},
// Timeout for integration tests (some may be slow)
testTimeout: 30000,
// Vitest 4: avoid forks on macOS (can produce kill EPERM on teardown) and
// keep files sequential to reduce contention around Hugo + temp dirs.
pool: "threads",
fileParallelism: false,
},
});