-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Error While Integrating Cypress Testing Library on Gitlab CI/CD #219
Comments
Hi even I observe the same error when I run my scripts in browserStack. Any alternatives or fix for this please? Running: movSvc/testCaseCheckTest.spec.js Oops...we found an error preparing this test file:
The error was: Error: Webpack Compilation Error |
@aman2810khan did you find a solution? We have the same error on Github actions. Locally it runs fine. |
I had an old import in my command.js file removing the import got rid of the error. |
@aman2810khan @amruth963 @rmcsharry did you guys figured it out ? For me, while running on github actions it is running fine. |
I have installed DOM and Cypress testing library modules in my react project :
npm install --save-dev @testing-library/dom
npm install --save-dev @testing-library/cypress
As mentioned in testing library docs , I have added the following import statement in cypress/support/commands.js :
import '@testing-library/cypress/add-commands';
The problem is node_modules is present in my .gitignore file and when the pipeline runs the cypress tests (files with extension .spec.js) on Gitlab ,it throws the following error :
Module not found: Error: Can't resolve '@testing-library/cypress/add-commands'
Is there any alternate way for using the cypress testing library commands?
The text was updated successfully, but these errors were encountered: