This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import mdx from '@mdx-js/rollup'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import path from 'path'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { defineConfig, mergeConfig } from 'vitest/config'
|
||||
|
||||
import viteConfig from './vite.config'
|
||||
|
||||
|
||||
export default defineConfig ({
|
||||
plugins: [mdx ({ providerImportSource: '@/mdx-components' }), react ()],
|
||||
resolve: { alias: { '@': path.resolve (__dirname, './src') } },
|
||||
test: { environment: 'jsdom',
|
||||
export default mergeConfig (
|
||||
viteConfig,
|
||||
defineConfig ({
|
||||
test: { environment: 'jsdom',
|
||||
setupFiles: './src/test/setup.ts',
|
||||
globals: false } })
|
||||
globals: false } }))
|
||||
|
||||
Reference in New Issue
Block a user