import { vitestConfig } from '@tooling/vitest-config'

export default vitestConfig.realPg({
  test: {
    // engine-better-auth + engine-custom tests boot pglite (embedded
    // Postgres-WASM) per case — integration-tier setup. Under the parallel
    // cold gate several suites boot pglite at once and CPU contention pushes
    // a boot past vitest's 5s unit-test default (observed: 5007ms timeout on
    // genuinely hung test; a single worker keeps this package's own pglite
    // instances from contending with each other file-to-file.
    maxWorkers: 1,
  },
})
