19 lines
534 B
TypeScript
19 lines
534 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
// Integration files intentionally share one disposable database. Running
|
|
// their setup/cleanup concurrently makes otherwise isolated fixtures race.
|
|
fileParallelism: false,
|
|
include: [
|
|
'tests/integration/**/*.test.ts',
|
|
'packages/db/src/**/*.integration.test.ts',
|
|
],
|
|
env: {
|
|
DATABASE_URL: process.env.DATABASE_URL ?? '',
|
|
DEVRUNBOOK_DATABASE_INTEGRATION: 'true',
|
|
},
|
|
testTimeout: 30_000,
|
|
},
|
|
})
|