Docker-Images bauen und veroeffentlichen / build-and-push (push) Failing after 1m32s
24 lines
763 B
TypeScript
24 lines
763 B
TypeScript
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,
|
|
},
|
|
});
|