12 lines
355 B
TypeScript
12 lines
355 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
// webview 源码里的 `@/` 指 webview-ui/src(同 webview-ui/vite.config.ts),跑 webview 的单元测试时一样认
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./webview-ui/src', import.meta.url)),
|
|
},
|
|
},
|
|
})
|