Cypress cannot find external dependencies in CI #19110
Unanswered
directcuteo
asked this question in
CI setup
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. In my Angular application, I use an external Cypress helper library called
cypress-localstorage-commands
to access the localStorage as a Cypress Chainable object. Locally, the library is well imported and the tests are working fine.Inside Drone pipeline Cypress doesn't recognize this library and I don't know how to properly import it inside the pipeline.
Locally I installed it using:
npm i --save-dev cypress-localstorage-commands
and imported in cypress/support/commands.js using
import 'cypress-localstorage-commands';
The message cypress is showing inside the pipeline is:
I even tried before the test to run as a Docker command:
npm install && npm i cypress-localstorage-commands && \
but Cypress still doesn't see the library.I ask for your guidance. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions