mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 17:25:15 +08:00
feat: 扩展中心支持多模态消息、HTML 渲染、一级导航与应用内通知
This commit is contained in:
1 parent
b20e514c90
commit
4ea73c3414
63 files changed
+8360
-644
No files matched your search
@@ -25,9 +25,12 @@ describe('example extensions', () => {
|
||||
const root = path.join(EXAMPLES_ROOT, directory)
|
||||
const manifestPath = path.join(root, 'manifest.json')
|
||||
expect(fs.existsSync(manifestPath), `${directory} 缺少 manifest.json`).toBe(true)
|
||||
const pkg = JSON.parse(
|
||||
fs.readFileSync(path.resolve(process.cwd(), 'package.json'), 'utf8')
|
||||
) as { version?: string }
|
||||
const parsed = parseExtensionManifest(
|
||||
JSON.parse(fs.readFileSync(manifestPath, 'utf8')) as unknown,
|
||||
{ appVersion: '2.6.0' }
|
||||
{ appVersion: pkg.version || '2.7.0' }
|
||||
)
|
||||
expect(parsed.ok, `${directory}: ${parsed.message || ''}`).toBe(true)
|
||||
const manifest = parsed.manifest
|
||||
|
||||
Reference in new issue
Block a user