mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-12-27 07:59:08 +08:00
19 lines
459 B
TypeScript
19 lines
459 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { mergeConfig, defineConfig } from 'vite'
|
|
import { configDefaults } from 'vitest/config'
|
|
import viteConfig from './vite.config'
|
|
|
|
export default mergeConfig(
|
|
viteConfig,
|
|
defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
exclude: [...configDefaults.exclude, 'e2e/*'],
|
|
root: fileURLToPath(new URL('./', import.meta.url)),
|
|
transformMode: {
|
|
web: [/\.[jt]sx$/]
|
|
}
|
|
}
|
|
})
|
|
)
|