hi 👋 has anyone got typescript configured in a wa...
# component-testing
w
hi 👋 has anyone got typescript configured in a way to avoid type clashes between cypress and jest when using component testing (spec files next to component files)? I can't see how the approach in this example would work for that scenario https://github.com/cypress-io/cypress-and-jest-typescript-example (I'm using cypress v9.7)
just found this: https://glebbahmutov.com/blog/local-cypress/ is this the recommended way of solving this?
just in case someone finds this later through search: I got it working by adding a separate tsconfig for jest and including both tsconfigs in the eslintrc config file like this. (we use .spec.tsx suffix for cypress component test files and .test.ts for jest unit test files)