提交 763f3cf6 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

fix: uts 组件 options 写法在 xcode 15.2 以下环境不满足构建,应当跳过测试

上级 fb926b31
......@@ -14,6 +14,21 @@ it('callMethodTest', async () => {
return
}
// ios_simulator ios 17.0
// xcodoe 15 以下的版本环境不满足
const isIOS = process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')
if (
isIOS &&
(platformInfo.indexOf('14.') != -1 ||
platformInfo.indexOf('13.') != -1 ||
platformInfo.indexOf('12.') != -1)
) {
expect(1).toBe(1)
return
}
const delay = () =>
new Promise((resolve, _) => {
setTimeout(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册