vue/vitest.config.ts

24 lines
609 B
TypeScript
Raw Normal View History

2022-05-19 10:21:26 +00:00
import { resolve as _resolve } from 'path'
import { defineConfig } from 'vitest/config'
const resolve = (p: string) => _resolve(__dirname, p)
export default defineConfig({
resolve: {
alias: {
compiler: resolve('src/compiler'),
core: resolve('src/core'),
server: resolve('src/server'),
sfc: resolve('src/sfc'),
shared: resolve('src/shared'),
web: resolve('src/platforms/web'),
vue: resolve('src/platforms/web/entry-runtime-with-compiler')
}
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: resolve('test/vitest.setup.ts')
}
})