n8n/packages/@n8n/task-runner/vite.config.ts
Matsu 2e683ffc0f
chore(core): Migrate task-runner from Jest to Vitest (no-changelog) (#31481)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 16:16:18 +00:00

20 lines
499 B
TypeScript

import { createVitestConfigWithDecorators } from '@n8n/vitest-config/node-decorators';
import path from 'node:path';
import { mergeConfig } from 'vite';
export default mergeConfig(
createVitestConfigWithDecorators({
// The n8n root jest.config sets `restoreMocks: true`, and test files silently rely on
// it — omit this and mocks bleed between tests.
restoreMocks: true,
testTimeout: 10_000,
}),
{
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
},
);