test: 补 electron mock,修复合并后 wcdb4-client 路径解析测试

This commit is contained in:
Wxw-Gu committed 2026-11-04 16:09:29 +08:00
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'