I have created a simple js framework with testcafe root -POM directory -->login class -Test directory -->login test which imports login class
When I am using command "testcafe chrome ./test/*.test.js it works just fine but if i use "saucectl run" i have issues as follows
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
my 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
Aucun commentaire:
Enregistrer un commentaire