mirror of
https://github.com/enso-org/enso.git
synced 2024-12-20 08:31:50 +03:00
16765455c2
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
20 lines
642 B
TypeScript
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
|