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

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

上级 2ca19848
......@@ -15,6 +15,20 @@ it('callMethodTest', async () => {
return
}
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isIOS = process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')
// ios_simulator ios 17.0
// xcodoe 15 以下的版本环境不满足
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.
先完成此消息的编辑!
想要评论请 注册