Files
modeling-app/vitest.config.ts

23 lines
575 B
TypeScript
Raw Normal View History

import { defineConfig } from 'vitest/config'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
globals: true,
globalSetup: './src/test-setup/global-setup.ts',
environment: 'happy-dom',
setupFiles: ['./src/setupTests.ts'],
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
],
deps: {
external: [/playwright/],
},
},
})