Files
dsh-market/vitest.compat.config.ts
Captain c24647f8e2 fix(install): spell the release-age bypass the way pnpm 12.3+ reads it (#600) (#616)
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.
2026-09-18 21:34:37 +08:00

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,
},
})