Gehashte Tokens mit Praefix, Rate-Limit je IP und Token, zod-Validierung mit durchgaengig optionalen Feldern, idempotente Reports ueber reportId, Key- und Server-ID-Historie sowie automatischer Laufzeit-Vorschlag. 32 Tests. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
17 lines
504 B
TypeScript
17 lines
504 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
|
|
},
|
|
test: {
|
|
include: ["tests/**/*.test.ts", "src/**/*.test.ts"],
|
|
environment: "node",
|
|
globalSetup: ["tests/global-setup.ts"],
|
|
setupFiles: ["tests/setup-env.ts"],
|
|
// Datenbanktests teilen sich eine Datenbank und dürfen sich nicht überholen.
|
|
fileParallelism: false,
|
|
},
|
|
});
|