1 Star 0 Fork 23

张三峰/lobechat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vitest.config.ts 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
import { resolve } from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
optimizeDeps: {
exclude: ['crypto', 'util', 'tty'],
include: ['@lobehub/tts'],
},
test: {
alias: {
'@': resolve(__dirname, './src'),
'~test-utils': resolve(__dirname, './tests/utils.tsx'),
},
coverage: {
all: false,
exclude: [
'__mocks__/**',
// just ignore the migration code
// we will use pglite in the future
// so the coverage of this file is not important
'src/database/client/core/db.ts',
],
provider: 'v8',
reporter: ['text', 'json', 'lcov', 'text-summary'],
reportsDirectory: './coverage/app',
},
deps: {
inline: ['vitest-canvas-mock'],
},
environment: 'happy-dom',
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'src/database/server/**/**',
'src/server/modules/**/**',
],
globals: true,
setupFiles: './tests/setup.ts',
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/fff_1993/lobechat.git
git@gitee.com:fff_1993/lobechat.git
fff_1993
lobechat
lobechat
main

搜索帮助