mirror of
https://github.com/TautvydasDerzinskas/Thingport.git
synced 2026-10-19 05:10:01 -05:00
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.
15 lines
409 B
TypeScript
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,
|
|
},
|
|
});
|