Failed to launch wechat web devTools, please make sure http port is open【自动化测试】

0.下载最新版小程序(最新版才支持小程序自动化测试)

1.设置 =》安全设置 =》开启端口

2.修改 index.spec.js 中的地址

miniProgram = await automator.launch({
  projectPath: '/Users/gzw/workspace/mini-demo',
})

3.yarn test

你可能感兴趣的:(微信小程序,bug)