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.
24 lines
540 B
24 lines
540 B
2 years ago
|
import { dirname, resolve } from 'path'
|
||
|
import { fileURLToPath } from 'url'
|
||
|
import { defineConfig } from 'vitest/config'
|
||
|
|
||
|
const dir = dirname(fileURLToPath(import.meta.url))
|
||
|
|
||
|
const timeout = 60_000
|
||
|
|
||
|
export default defineConfig({
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
node: resolve(dir, '../../src/node')
|
||
|
}
|
||
|
},
|
||
|
test: {
|
||
|
watchExclude: ['**/node_modules/**', '**/temp/**'],
|
||
|
globalSetup: ['__tests__/init/vitestGlobalSetup.ts'],
|
||
|
testTimeout: timeout,
|
||
|
hookTimeout: timeout,
|
||
|
teardownTimeout: timeout,
|
||
|
globals: true
|
||
|
}
|
||
|
})
|