mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 19:47:08 +08:00
- 将用户可见品牌升级为 TraceMemo(迹忆) - 增加最早期 userData/sessionData 兼容路径选择 - 保留 WechatExplorer runtime identity 以兼容 safeStorage - 继续使用旧 Knowledge、Settings、API Token 和 Provider 配置 - 新日志写入 TraceMemo 目录并保留历史日志 - 保留旧 API、Skill、环境变量和导出目录兼容标识 - 更新相关文档、界面文案与自动化测试
27 lines
985 B
TypeScript
27 lines
985 B
TypeScript
import { describe, expect, it } from 'vitest'
|
||
import { buildSafeDiagnosticSummary } from '../../src/shared/connection-diagnostics'
|
||
|
||
describe('connection diagnostics', () => {
|
||
it('contains useful versions and readiness without secrets or full account paths', () => {
|
||
const summary = buildSafeDiagnosticSummary({
|
||
platform: 'win32',
|
||
osVersion: 'Windows 11 fixture',
|
||
appVersion: 'v2.1.6',
|
||
wechatVersion: '4.1.9.57',
|
||
dataStructureVersion: '微信 4.x(WCDB)',
|
||
dataDirectoryDetected: true,
|
||
autoDetectSupported: true,
|
||
wechatRunning: true,
|
||
accountIdentified: true,
|
||
dbConnected: false,
|
||
encryptionAvailable: true
|
||
})
|
||
|
||
expect(summary).toContain('TraceMemo: v2.1.6')
|
||
expect(summary).toContain('微信客户端: 4.1.9.57')
|
||
expect(summary).not.toContain('0123456789abcdef')
|
||
expect(summary).not.toContain('C:\\Users\\fixture\\xwechat_files\\wxid_secret')
|
||
expect(summary).not.toContain('wxid_')
|
||
})
|
||
})
|