test: admin seed ve kimlik doğrulama entegrasyon testleri
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-3
@@ -3,12 +3,15 @@ import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
|
||||
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"],
|
||||
// "server-only" paketi test ortamında hata fırlatmasın.
|
||||
server: { deps: { inline: ["server-only"] } },
|
||||
// Veritabanı gerektiren testler ayrı: npm run test:integration
|
||||
exclude: ["**/*.int.test.ts", "node_modules/**"],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user