mirror of https://github.com/vuejs/vitepress
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.
29 lines
669 B
29 lines
669 B
2 years ago
|
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'
|
||
|
}
|
||
|
})
|