Closed YemiYuma closed 4 years ago
Problem solved - was an error on my part :)
@YemiYuma glad to hear that, what was the problem?
@YemiYuma can u tell what was the problem ? I am facing the same issue.running fine locally but on Jenkins throwing error no cypress retries command found
hey guys, I changed the require to import it directly from my _nodemodules folder, so in my support/index.js file:
import '../../node_modules/cypress-plugin-retries'
When I run cypress with this add-on locally, it works perfectly without any issues at all, however for some reason when I run cypress in a container through Jenkins, I seem to be getting the following error in my console:
'cypress_1 | Error: Cannot find module 'cypress-plugin-retries' from '/cypress/support'
This is my cypress/support/index.js file:
This is my cypress.json file:
This is my package.json file:
Dockerfile:
Could anyone provide any assistance regarding this? I feel like i've made a silly mistake somewhere, or i'm missing a line; works perfectly fine locally - it's just when ran in a container on Jenkins this issue seems to occur.
I can provide more information if needed.
Thanks