npm run test:android //运行测试
- 发布:2022-10-21 11:42
- 更新:2023-04-12 14:59
- 阅读:274
5***@qq.com - vue开发移动app
需要配置jest.config.js
配置环境和变量,不然找不到
globalTeardown: '@dcloudio/uni-automator/dist/teardown.js',
testEnvironment: '@dcloudio/uni-automator/dist/environment.js',
renwenwen - 123
我加上配置了需要配置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: []
}
1***@qq.com (作者)
是的,但还是存在这个问题
2022-10-21 14:13
DCloud_UNI_FXY
回复 1***@qq.com: 发完整的测试工程
2022-10-21 15:06
1***@qq.com (作者)
回复 DCloud_UNI_FXY:
只是一个默认的测试用例,就运行不了了
describe('test title', () => {
});
2022-10-24 15:48