Files
fusion/packages/engine/vitest.config.ts
gsxdsm c68bf1f3f8 fix(FN-1068): switch vitest pool from vmThreads to threads to fix node:sqlite error
- Change vitest pool from vmThreads to threads in engine package
- Resolves node:sqlite compatibility issue caused by vmThreads isolation
- vmThreads creates separate VM contexts incompatible with native SQLite module
2026-04-07 14:20:55 -07:00

20 lines
490 B
TypeScript

import { defineConfig } from "vitest/config";
const maxWorkers = Number.parseInt(process.env.VITEST_MAX_WORKERS ?? "16", 10);
export default defineConfig({
test: {
include: ["src/**/*.test.ts"],
maxWorkers,
fileParallelism: true,
pool: "threads",
coverage: {
enabled: false,
reporter: ["text", "html", "json"],
reportsDirectory: "./coverage",
include: ["src/**/*.ts"],
exclude: ["**/*.test.ts", "**/*.d.ts", "dist/**"],
},
},
});