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.
20 lines
466 B
20 lines
466 B
3 years ago
|
import { dirname, resolve } from 'path'
|
||
|
import { fileURLToPath } from 'url'
|
||
2 years ago
|
import { defineConfig } from 'vitest/config'
|
||
3 years ago
|
|
||
|
const dir = dirname(fileURLToPath(import.meta.url))
|
||
|
|
||
|
export default defineConfig({
|
||
|
resolve: {
|
||
|
alias: {
|
||
3 years ago
|
'@siteData': resolve(dir, './shims.ts'),
|
||
2 years ago
|
client: resolve(dir, '../../src/client'),
|
||
|
node: resolve(dir, '../../src/node'),
|
||
|
vitepress: resolve(dir, '../../src/client')
|
||
3 years ago
|
}
|
||
|
},
|
||
|
test: {
|
||
|
globals: true
|
||
|
}
|
||
|
})
|