vite/vitest.config.e2e.ts
2022-12-04 08:19:06 +01:00

28 lines
668 B
TypeScript

import { resolve } from 'node:path'
import { defineConfig } from 'vitest/config'
const timeout = 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',
onConsoleLog(log) {
if (log.match(/experimental|jit engine|emitted file|tailwind/i))
return false
},
},
esbuild: {
target: 'node14',
},
})