Is it possible for both Jest & @cypress/react unit tests to coexist in a typescript project? #15063
-
I spent an entire day yesterday trying to do just that. I just couldn't find a way to prevent the cypress types from conflicting with the jest types. (global expect etc). I tried splitting the @cypress/react unit tests out and into a completely seperate working directory with it's own tsconfig, but then cypress error'd for me saying that the component tests must be in the same place as the components. If i'm being honest, I truly love using @cypress/react and I was hoping to transition our developers into using it over jest/js-dom - but the above problem has pretty much stopped me in my tracks. Has anyone else managed to pull this off? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Read https://glebbahmutov.com/blog/local-cypress/ which explains the global variables problem and what we are doing about it |
Beta Was this translation helpful? Give feedback.
Read https://glebbahmutov.com/blog/local-cypress/ which explains the global variables problem and what we are doing about it