17 lines
393 B
TypeScript
17 lines
393 B
TypeScript
import { resolve } from "node:path";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(process.cwd(), "."),
|
|
"bun:test": resolve(process.cwd(), "test/bun-test-shim.ts"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
exclude: [".next/**", "node_modules/**"],
|
|
setupFiles: ["./test/vitest.setup.ts"],
|
|
},
|
|
});
|