锁定移动壳运行时能力回包
移动 HostBridge runtime 单测精确断言共享能力 profile 移动壳配置门禁反查 runtime 能力 profile 断言 补充原生壳方案文档和共享决策记录
This commit is contained in:
@@ -2672,8 +2672,12 @@ for (const snippet of [
|
||||
'reports iOS runtime with host version, bridge version and iOS capabilities',
|
||||
'reports Android runtime without iOS-only app badge capability',
|
||||
'wraps runtime metadata in the HostBridge response shape',
|
||||
'HOST_BRIDGE_EXPO_MOBILE_BASE_CAPABILITIES',
|
||||
'HOST_BRIDGE_EXPO_MOBILE_IOS_CAPABILITIES',
|
||||
'hostVersion: MOBILE_SHELL_HOST_VERSION',
|
||||
'bridgeVersion: HOST_BRIDGE_VERSION',
|
||||
'expect(runtime.capabilities).toBe(HOST_BRIDGE_EXPO_MOBILE_IOS_CAPABILITIES)',
|
||||
'expect(runtime.capabilities).toBe(HOST_BRIDGE_EXPO_MOBILE_BASE_CAPABILITIES)',
|
||||
"not.toContain('app.setBadgeCount')",
|
||||
"expect(getMobileRuntimePlatform()).toBe('android')",
|
||||
]) {
|
||||
|
||||
Reference in New Issue
Block a user