mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-21 02:43:34 +08:00
Add user CRUD, account-scoped navigation history and favorites. Unify HTTP mocks, backend contracts and route configuration. Reuse existing scrolling components and add Harness reuse guidance.
24 lines
639 B
TypeScript
24 lines
639 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,
|
|
setupFiles: ['__test__/setup-api.ts'],
|
|
},
|
|
}),
|
|
),
|
|
)
|