mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 05:29:44 +02:00
20 lines
658 B
TypeScript
20 lines
658 B
TypeScript
import { createVitestConfigWithDecorators } from '@n8n/vitest-config/node-decorators';
|
|
import { tscDecoratorTransform } from '@n8n/vitest-config/tsc-decorator-transform';
|
|
import { mergeConfig } from 'vite';
|
|
import { configDefaults } from 'vitest/config';
|
|
|
|
export default mergeConfig(
|
|
createVitestConfigWithDecorators({}, { pinCjs: ['@n8n/backend-common', '@n8n/decorators'] }),
|
|
{
|
|
plugins: [
|
|
tscDecoratorTransform({ filePredicate: (fileName) => /\.entity\.ts$/.test(fileName) }),
|
|
],
|
|
test: {
|
|
pool: 'forks',
|
|
setupFiles: ['./test/setup-test-folder.ts'],
|
|
exclude: [...configDefaults.exclude, '**/dist/**'],
|
|
hookTimeout: 30_000,
|
|
},
|
|
},
|
|
);
|