19 lines
510 B
TypeScript
19 lines
510 B
TypeScript
import { defineConfig } from "vitest/config";
|
|||
|
|
import { fileURLToPath } from "node:url";
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
"@": fileURLToPath(new URL("./", import.meta.url)),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
environment: "node",
|
||
|
|
include: ["lib/**/*.test.ts", "app/**/*.test.ts"],
|
||
|
|
setupFiles: ["./vitest.setup.ts"],
|
||
|
|
// Integration tests share one Postgres database; running files in
|
||
|
|
// parallel would let them clobber each other's rows.
|
||
|
|
fileParallelism: false,
|
||
|
|
},
|
||
|
|
});
|