8 Star 35 Fork 9

Gitee 极速下载/ViteJS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/vitejs/vite
克隆/下载
vitest.config.e2e.ts 936 Bytes
一键复制 编辑 原始数据 按行查看 历史
patak 提交于 2024-08-24 19:40 . chore: reduce diffs with v6 branch (#17942)
import { resolve } from 'node:path'
import { defineConfig } from 'vitest/config'
const timeout = process.env.PWDEBUG ? Infinity : process.env.CI ? 50000 : 30000
export default defineConfig({
resolve: {
alias: {
'~utils': resolve(__dirname, './playground/test-utils'),
},
},
test: {
include: ['./playground/**/*.spec.[tj]s'],
setupFiles: ['./playground/vitestSetup.ts'],
globalSetup: ['./playground/vitestGlobalSetup.ts'],
testTimeout: timeout,
hookTimeout: timeout,
reporters: 'dot',
deps: {
// Prevent Vitest from running the workspace packages in Vite's SSR runtime
moduleDirectories: ['node_modules', 'packages'],
},
onConsoleLog(log) {
if (
log.match(
/experimental|jit engine|emitted file|tailwind|The CJS build of Vite/i,
)
)
return false
},
},
esbuild: {
target: 'node18',
},
publicDir: false,
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/ViteJS.git
[email protected]:mirrors/ViteJS.git
mirrors
ViteJS
ViteJS
main

搜索帮助