mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-29 20:15:00 +02:00
18 lines
506 B
TypeScript
18 lines
506 B
TypeScript
import path from 'node:path';
|
|
import { mergeConfig } from 'vite';
|
|
import { createVitestConfig } from '@n8n/vitest-config/node';
|
|
|
|
export default mergeConfig(createVitestConfig({}), {
|
|
resolve: {
|
|
alias: [
|
|
// @inquirer/prompts and its sub-packages are ESM-only. Tests redirect
|
|
// any @inquirer/* import to this mock (mirrors the former Jest
|
|
// moduleNameMapper).
|
|
{
|
|
find: /^@inquirer\/.*$/,
|
|
replacement: path.resolve(__dirname, './src/__mocks__/@inquirer/prompts.ts'),
|
|
},
|
|
],
|
|
},
|
|
});
|