mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-22 03:23:35 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
23 lines
592 B
TypeScript
23 lines
592 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { configDefaults, defineConfig, mergeConfig } from 'vitest/config'
|
|
import viteConfig from './vite.config.ts'
|
|
|
|
export default defineConfig((configEnv) =>
|
|
mergeConfig(
|
|
viteConfig(configEnv),
|
|
defineConfig({
|
|
test: {
|
|
root: fileURLToPath(new URL('.', import.meta.url)),
|
|
include: ['__test__/**/*.spec.{ts,tsx}'],
|
|
exclude: [
|
|
...configDefaults.exclude,
|
|
'**/src/**',
|
|
'./__test__/utils/**/*',
|
|
],
|
|
environment: 'happy-dom',
|
|
globals: true,
|
|
},
|
|
}),
|
|
),
|
|
)
|