mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
test: 补 electron mock,修复合并后 wcdb4-client 路径解析测试
This commit is contained in:
1 parent
7e9997cc06
commit
780a19900b
1 file changed
+5
@@ -12,6 +12,11 @@ vi.mock('../../src/main/resource-paths', () => ({
|
||||
findResource: () => null
|
||||
}))
|
||||
|
||||
// wcdb4-client 现在通过 native-runtime-paths 解析 dylib 路径,那条链路读 electron.app。
|
||||
vi.mock('electron', () => ({
|
||||
app: { isPackaged: false, getPath: () => '/tmp' }
|
||||
}))
|
||||
|
||||
describe('message insert shard catalog', () => {
|
||||
const roots: string[] = []
|
||||
const room = 'fixture-group@chatroom'
|
||||
|
||||
Reference in new issue
Block a user