Azikou
Azikou
  • 发布:2023-12-28 10:58
  • 更新:2024-02-19 14:41
  • 阅读:312

#插件讨论# 【 HBuilderX uni-app自动化测试 - DCloud-HBuilderX团队 】/uni.automator.js不存在

分类:uni-app

执行安卓自定义基座,会报Cannot find module '@dcloudio/uni-app-plus/lib/uni.automator.js'
求大佬帮忙看看

2023-12-28 10:58 负责人:DCloud_UNI_WZF 分享
已邀请:
Azikou

Azikou (作者)

有没有自动化测的大佬帮忙看看

Azikou

Azikou (作者)

{"numFailedTestSuites":1,"numFailedTests":0,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":1,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":0,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1703728603000,"success":false,"testResults":[{"assertionResults":[],"coverage":{},"endTime":1703728606236,"message":" ● Test suite failed to run\n\n Cannot find module '@dcloudio/uni-app-plus/lib/uni.automator.js'\n Require stack:\n - D:\tool\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-automator\dist\index.js\n - D:\tool\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-automator\dist\environment.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest-util\build\requireOrImportModule.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest-util\build\index.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest-config\build\getCacheDirectory.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest-config\build\Defaults.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest-config\build\normalize.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest-config\build\index.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest\node_modules\jest-cli\build\init\index.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest\node_modules\jest-cli\build\cli\index.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest\node_modules\jest-cli\build\index.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest\node_modules\jest-cli\bin\jest.js\n - D:\tool\HBuilderX\plugins\hbuilderx-for-uniapp-test-lib\node_modules\jest\bin\jest.js\n\n at it (D:/tool/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-automator/dist/index.js:1:2200)\n at new Ht (D:/tool/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-automator/dist/index.js:15:18332)\n at Vt.launch (D:/tool/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-automator/dist/index.js:15:22909)\n at module.exports.setup (D:/tool/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-automator/dist/environment.js:1:689)\n","name":"C:\Users\lenovo\Documents\Tencent Files\179526027\FileRecv\uni-app支持uni小程序\MyUniHost\pages\index\index.test.js","startTime":1703728606236,"status":"failed","summary":""}],"wasInterrupted":false}

俞19

俞19

有没有人啊,我也这问题

Azikou

Azikou (作者)

1111

DCloud_UNI_WZF

DCloud_UNI_WZF

HBuilderX-Alpha-published.app/Contents/HBuilderX/plugins/hbuilderx-for-uniapp-test-lib/package.json
中添加依赖 "jimp": "^0.10.1" 并在所在目录执行 npm install 试下

要回复问题请先登录注册