提交 dd05afd6 编写于 作者: Anne_LXM's avatar Anne_LXM

test(editor):APP_WEBVIEW时跑测试

上级 1a99a547
// uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/ // uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
jest.setTimeout(30000); jest.setTimeout(30000);
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isAndroid = platformInfo.startsWith('android')
const isIos = platformInfo.startsWith('ios')
describe('editor.uvue', () => { describe('editor.uvue', () => {
if (isAndroid || isIos) { console.log('process.env',process.env)
if (!process.env.UNI_AUTOMATOR_APP_WEBVIEW || !process.env.uniTestPlatformInfo.startsWith('web')) {
it('app', () => { it('app', () => {
expect(1).toBe(1) expect(1).toBe(1)
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册