mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-18 03:57:02 +08:00
test: 建立桌面端自动化回归测试体系并完善跨平台 CI
(cherry picked from commit 74267ae2f63f8256c3da84b04f5b330e6e9d4c67)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { resolve } from 'path'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@renderer': resolve(__dirname, 'src/renderer/src')
|
||||
}
|
||||
},
|
||||
test: {
|
||||
name: 'component',
|
||||
environment: 'jsdom',
|
||||
include: ['tests/component/**/*.test.tsx'],
|
||||
setupFiles: ['tests/setup/component.ts'],
|
||||
clearMocks: true,
|
||||
restoreMocks: true
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user