enso/app/gui/vitest.config.ts

21 lines
717 B
TypeScript
Raw Normal View History

import { fileURLToPath } from 'node:url'
import { configDefaults, defineConfig, mergeConfig } from 'vitest/config'
import viteConfig from './vite.config'
const config = mergeConfig(
viteConfig,
defineConfig({
test: {
reporters: process.env.CI ? ['dot', 'github-actions'] : ['default'],
environment: 'jsdom',
includeSource: ['./src/**/*.{ts,tsx,vue}'],
exclude: [...configDefaults.exclude, 'integration-test/**/*'],
root: fileURLToPath(new URL('./', import.meta.url)),
restoreMocks: true,
setupFiles: './src/dashboard/test/setup.ts',
},
}),
)
config.esbuild.dropLabels = config.esbuild.dropLabels.filter((label: string) => label != 'DEV')
export default config