enso/app/gui/vitest.config.ts
Sergei Garin 16765455c2
Reset expanded directories list on category change (#11725)
Partially closes: cloud-v2/1592

Closes: https://github.com/enso-org/cloud-v2/issues/1606

This PR also adds needed configuration for unit tests and adjust it to run using vscode vite extension
2024-12-02 15:44:39 +00:00

20 lines
642 B
TypeScript

import { fileURLToPath } from 'node:url'
import { configDefaults, defineConfig, mergeConfig } from 'vitest/config'
import viteConfig from './vite.config'
const config = mergeConfig(
viteConfig,
defineConfig({
test: {
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