mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
test: 建立桌面端自动化回归测试体系并完善跨平台 CI
(cherry picked from commit 74267ae2f63f8256c3da84b04f5b330e6e9d4c67)
This commit is contained in:
1 parent
e8cbfaf223
commit
8ec3237ef9
36 files changed
+2598
-110
No files matched your search
@@ -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