hello_XFJ
hello_XFJ
  • 发布:2022-09-16 10:10
  • 更新:2022-09-16 10:10
  • 阅读:222

uniapp 自动化测试插件报错

分类:uni-app

按照文档的例子:uni-app普通项目

报错如下:

10:02:58.328 [jest_2:h5] FAIL pages/index/index.test.js
10:02:58.334 [jest_2:h5]
10:02:58.339 [jest_2:h5] ● Test suite failed to run
10:02:58.344 [jest_2:h5]
10:02:58.344 [jest_2:h5] TypeError: this._environment.runScript is not a function
10:02:58.348 [jest_2:h5]
10:02:58.355 [jest_2:h5] at Runtime._execModule (../../../../node_modules/jest-runtime/build/index.js:856:41)
10:02:58.356 [jest_2:h5]

系统:Mac 12.2
Node版本:v16.5.0
uniapp Node版本:v12.22.1
HBuilderX:3.6.2.20220914

2022-09-16 10:10 负责人:无 分享
已邀请:

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