test: admin seed ve kimlik doğrulama entegrasyon testleri

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 02:02:00 +03:00
parent 97e7ebe9aa
commit fc3e0ae21b
6 changed files with 305 additions and 13 deletions
+6 -3
View File
@@ -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/**"],
},
});