1 Star 0 Fork 195

jianPeng1022/nutui

forked from 京东零售/nutui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vitest.config.ts 815 Bytes
一键复制 编辑 原始数据 按行查看 历史
eiinu 提交于 2023-12-05 11:58 . chore(deps): bump vitest to 1.0
import { defineConfig } from 'vitest/config';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import path from 'path';
const resolve = path.resolve;
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: [{ find: '@', replacement: resolve(__dirname, './src') }]
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "@/packages/styles/variables.scss";@import "@/sites/assets/styles/variables.scss";`
}
}
},
plugins: [
vue({
include: [/\.vue$/]
}),
vueJsx()
],
test: {
globals: true,
environment: 'jsdom',
coverage: {
all: false,
provider: 'v8'
},
include: ['src/packages/__VUE/**/*.(test|spec).(ts|tsx)'],
reporters: ['default', 'html']
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jianpeng1022/nutui.git
git@gitee.com:jianpeng1022/nutui.git
jianpeng1022
nutui
nutui
v4

搜索帮助

0d507c66 1850385 C8b1a773 1850385