Cypress component test throws "process is not defined" #26645
Unanswered
tomascaroponce
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to run component tests on a PWA made with Vue 2 and Webpack. When I try to run them I get an error saying
process is not defined
and this prevents me from doing the tests I want.The dependencies that my project has are the following:
My webpack config file looks like this:
My cypress config file looks like this:
And my test file looks like this:
I suppose it is a conflict between dependencies or a problem with some loader library.
I tried to implement all the solutions proposed in forums but none of them worked for me. I also created a new project with vue 2 and the tests ran perfectly, but I couldn't find what is the reason for the problem.
Beta Was this translation helpful? Give feedback.
All reactions