mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-15 05:40:47 +08:00
21 lines
395 B
TypeScript
21 lines
395 B
TypeScript
import path from 'node:path'
|
|
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve('./src'),
|
|
'@root': path.resolve('.'),
|
|
},
|
|
},
|
|
define: {
|
|
OS_PLATFORM: `"${process.platform}"`,
|
|
},
|
|
test: {
|
|
include: ['tests/**/*.test.ts', 'src/**/*.test.ts'],
|
|
environment: 'node',
|
|
restoreMocks: true,
|
|
},
|
|
})
|