mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 23:51:44 +03:00
3ad09a1537
Fixes: - Opening deleted folder - Icons - Diff view collapsed - Password input for passwords in settings - Save button appears only if form in settings is dirty - Disable clear trash button if it's empty - Disable D&D in the root folder - Disable Create actions if user select a folder without sufficient permissions - Many more
21 lines
717 B
TypeScript
21 lines
717 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: {
|
|
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
|