mirror of
https://github.com/dsh-market/dsh-market.git
synced 2026-09-28 05:03:07 +08:00
From pnpm 12.3.0, the native CLI, --config.minimumReleaseAge=0 is silently ignored on the command line, so the one-shot bypass in withHoistRecovery ran without the bypass and the retry failed exactly like the first attempt. The .npmrc spelling, --config.minimum-release-age=0, is honoured by pnpm 10, 11 and 12 alike, so use that. The compat matrix gains pnpm 12 and pins both the recovery and the ignored camelCase form. This is specific to that key: --config.fetch-timeout is ignored by the native CLI in both spellings, so FETCH_TIMEOUT_OVERRIDE is left alone here and tracked in #615.
15 lines
503 B
TypeScript
15 lines
503 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
// Compat lane: exercises REAL pnpm 9/10/11/12 (via npx) against throwaway
|
|
// profile fixtures — network access and several minutes of runtime. This is
|
|
// where the failure signatures behind #20/#21/#22 are pinned.
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['tests/**/*.compat.spec.ts'],
|
|
pool: 'forks',
|
|
// Real installs; the first npx pnpm@<version> also downloads that pnpm.
|
|
testTimeout: 300_000,
|
|
hookTimeout: 300_000,
|
|
},
|
|
})
|