mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-28 19:45:09 +02:00
22 lines
570 B
TypeScript
22 lines
570 B
TypeScript
import { mergeConfig } from 'vite';
|
|
|
|
import { baseConfig } from './vitest.config.base';
|
|
|
|
/**
|
|
* Migration tests share a database and perform rollbacks, so they must run
|
|
* sequentially in a single process.
|
|
*/
|
|
export default mergeConfig(baseConfig, {
|
|
test: {
|
|
include: ['test/migration/**/*.test.ts'],
|
|
// Migration suites do heavy DB work; some files previously set a 20s timeout.
|
|
// Apply it suite-wide for both tests and hooks.
|
|
testTimeout: 20_000,
|
|
hookTimeout: 20_000,
|
|
fileParallelism: false,
|
|
poolOptions: {
|
|
forks: { singleFork: true },
|
|
},
|
|
},
|
|
});
|