This commit is contained in:
commit
59bb5a38a3
132 files changed
+19435
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
import path from "node:path";
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(import.meta.dirname, "./src"),
|
||||
// "server-only" wirft ausserhalb von React Server Components; in den
|
||||
// Node-Tests ist der Import bedeutungslos.
|
||||
"server-only": path.resolve(import.meta.dirname, "./tests/support/empty.ts"),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: "node",
|
||||
include: ["tests/**/*.test.ts"],
|
||||
// Integrationstests teilen sich eine echte PostgreSQL-Instanz
|
||||
// (tests/support/global-setup.ts) und laufen deshalb nacheinander.
|
||||
fileParallelism: false,
|
||||
globalSetup: ["./tests/support/global-setup.ts"],
|
||||
testTimeout: 30_000,
|
||||
hookTimeout: 120_000,
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user