hello_XFJ
hello_XFJ
  • 发布:2022-10-28 15:47
  • 更新:2022-10-28 15:47
  • 阅读:219

自动化测试报错

分类:uni-app

https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/

系统:Mac 12.2
Hbuilder:3.6.4.20220922
node版本: v16.5.0

按照官方的例子

  1. 创建测试用例
  2. 测试运行

报错

15:40:27.382 [vuex-test:h5] FAIL pages/index/index.test.js
15:40:27.401 [vuex-test:h5]
15:40:27.419 [vuex-test:h5] ● Test suite failed to run
15:40:27.437 [vuex-test:h5]
15:40:27.458 [vuex-test:h5] TypeError: this._environment.runScript is not a function
15:40:27.471 [vuex-test:h5]
15:40:27.489 [vuex-test:h5] at Runtime._execModule (../../../../node_modules/jest-runtime/build/index.js:856:41)
15:40:27.509 [vuex-test:h5]

2022-10-28 15:47 负责人:DCloud_HB_WDL 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复