fc3e0ae21b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
541 B
TypeScript
18 lines
541 B
TypeScript
import { fileURLToPath } from "node:url";
|
||
import { defineConfig } from "vitest/config";
|
||
|
||
export default defineConfig({
|
||
resolve: {
|
||
alias: {
|
||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||
"server-only": fileURLToPath(new URL("./src/test/server-only-stub.ts", import.meta.url)),
|
||
},
|
||
},
|
||
test: {
|
||
environment: "node",
|
||
include: ["src/**/*.test.ts", "scripts/**/*.test.ts"],
|
||
// Veritabanı gerektiren testler ayrı: npm run test:integration
|
||
exclude: ["**/*.int.test.ts", "node_modules/**"],
|
||
},
|
||
});
|