我加上配置了需要配置jest.config.js还是报错
配置环境和变量,不然找不到
globalTeardown: '@dcloudio/uni-automator/dist/teardown.js',
testEnvironment: '@dcloudio/uni-automator/dist/environment.js', 报错如下:
Error: Cannot find module '/Users/ctrip/IdeaProjects/unitapp/rezen-stay-app/bin/uniapp-cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:962:15)
at Function.Module._load (internal/modules/cjs/loader.js:838:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
renwenwen
- 发布:2023-03-30 14:21
- 更新:2023-03-30 14:21
- 阅读:188
运行unit-app自动化时报错Cannot find module 'rezen-stay-app/bin/uniapp-cli.js'
分类:uni-app
0 个回复