You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/vitest.config.e2e.ts

29 lines
669 B

import { resolve } from 'path'
import { defineConfig } from 'vitest/config'
const timeout = process.env.CI ? 50000 : 30000
export default defineConfig({
resolve: {
alias: {
'~utils': resolve(__dirname, './examples/test-utils')
}
},
test: {
include: ['./examples/**/*.spec.[tj]s'],
setupFiles: ['./examples/vitestSetup.ts'],
globalSetup: ['./examples/vitestGlobalSetup.ts'],
testTimeout: timeout,
hookTimeout: timeout,
globals: true,
reporters: 'dot',
onConsoleLog(log) {
if (log.match(/experimental|jit engine|emitted file|tailwind/i))
return false
}
},
esbuild: {
target: 'node14'
}
})