diffinery/vitest.shared.ts
| 1 | /** |
| 2 | * Unit-test settings every package shares. |
| 3 | * |
| 4 | * CI runs on Cloudflare's hosted runners, and Cloudflare places them on hosts whose cores differ |
| 5 | * about 2x in speed (AMD EPYC Zen 2, 3 and 4 were all seen on 2026-10-16), some of them busy enough |
| 6 | * to stall a container's vCPUs for seconds. A test's timeout only catches a hang, so it allows for |
| 7 | * the slowest of those hosts; a test that checks speed says so itself, comparing against work done |
| 8 | * on the same machine rather than against a fixed number of seconds. |
| 9 | */ |
| 10 | export const timeouts = { testTimeout: 30_000, hookTimeout: 30_000 }; |