mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 13:14:07 -08:00
21 lines
505 B
TypeScript
21 lines
505 B
TypeScript
|
import { fileURLToPath } from 'node:url';
|
||
|
import { mergeConfig, defineConfig } from 'vite';
|
||
|
import { configDefaults } from 'vitest/config';
|
||
|
import viteConfig from './vite.config';
|
||
|
|
||
|
export default mergeConfig(
|
||
|
viteConfig,
|
||
|
defineConfig({
|
||
|
test: {
|
||
|
globals: true,
|
||
|
environment: 'jsdom',
|
||
|
exclude: [...configDefaults.exclude, 'e2e/*'],
|
||
|
root: fileURLToPath(new URL('./', import.meta.url)),
|
||
|
setupFiles: ['./src/__tests__/setup.ts'],
|
||
|
transformMode: {
|
||
|
web: [/\.[jt]sx$/],
|
||
|
},
|
||
|
},
|
||
|
}),
|
||
|
);
|