Files
Thingport/backend/vitest.config.ts
T
Tautvydas Derzinskas b7c2f36ace fix: retry file downloads blocked by Cloudflare or rate limits
Retry downloads once with a delay when blocked by a 429 or Cloudflare
challenge, then report the failure so the caller can handle it. Limit
Thingiverse download concurrency to 2 to reduce triggering rate limits.
2026-10-17 20:48:38 +02:00

15 lines
409 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["tests/**/*.test.ts"],
setupFiles: ["tests/setup.ts"],
testTimeout: 20000,
hookTimeout: 20000,
env: { IMPORT_DOWNLOAD_RETRY_DELAY_MS: "0" },
// Files share one database and mutate the same global rows, so parallel files race.
fileParallelism: false,
},
});