You've already forked hugo-extended
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:
@@ -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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user