mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-12 16:10:30 +02:00
28 lines
720 B
TypeScript
28 lines
720 B
TypeScript
import { resolve } from 'path';
|
|
import { mergeConfig } from 'vitest/config';
|
|
import { createVitestConfigWithDecorators } from '@n8n/vitest-config/node-decorators';
|
|
|
|
export default mergeConfig(
|
|
createVitestConfigWithDecorators({
|
|
include: ['**/*.integration.test.ts'],
|
|
testTimeout: 120_000,
|
|
hookTimeout: 120_000,
|
|
}),
|
|
{
|
|
resolve: {
|
|
alias: {
|
|
'@credentials': resolve(__dirname, 'credentials'),
|
|
'@test': resolve(__dirname, 'test'),
|
|
'@utils': resolve(__dirname, 'utils'),
|
|
'@nodes-testing': resolve(__dirname, '../core/nodes-testing'),
|
|
},
|
|
},
|
|
test: {
|
|
fileParallelism: false,
|
|
sequence: { concurrent: false },
|
|
pool: 'forks',
|
|
poolOptions: { forks: { singleFork: true } },
|
|
},
|
|
},
|
|
);
|