问题描述
我用testcafe创建了一个简单的js框架 根 -POM目录 ->登录类 -测试目录 ->登录测试,该测试将导入登录类
当我使用命令“ testcafe chrome ./test/*.test.js时,它正常工作 但是,如果我使用“ saucectl run”,则会遇到以下问题
Cannot prepare tests due to an error.
Error: Cannot find module 'Login'
Require stack:
- /home/seluser/tests/login.test.js
- /home/seluser/node_modules/testcafe/lib/compiler/test-file/formats/es-next/compiler.js
我的sauceconfigfile
apiVersion: v1
Metadata:
name: Feature XYZ
tags:
- e2e
- release team
- other tag
build: Release $CI_COMMIT_SHORT_SHA
files:
- ./src/JS_TEST/test/*.test.js
image:
base: saucelabs/stt-testcafe-node
version: v0.1.2
sauce:
region: us-west-1
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)