21 Star 370 Fork 148

GVPHuLaSpark/HuLa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vitest.config.ts 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
/// <reference types="vitest" />
import { defineConfig } from 'vitest/config'
import { getRootPath, getSrcPath } from './build/config/getPath'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
export default defineConfig({
plugins: [
vue(),
vueJsx(),
AutoImport({
imports: [
'vue',
'vue-router',
'pinia',
{ 'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar'] }
],
dts: 'src/typings/auto-imports.d.ts'
}),
Components({
dirs: ['src/components/**'],
resolvers: [NaiveUiResolver()],
dts: 'src/typings/components.d.ts'
})
],
resolve: {
alias: {
'@': getSrcPath(),
'~': getRootPath()
}
},
test: {
environment: 'happy-dom',
globals: true,
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*.{vue,js,jsx,ts,tsx}'],
exclude: ['src/**/*.{test,spec}.{js,ts}', 'src/types/**', 'src/**/*.d.ts']
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/HuLaSpark/HuLa.git
git@gitee.com:HuLaSpark/HuLa.git
HuLaSpark
HuLa
HuLa
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385