You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing code from this library in a Cypress component test file makes VS Code's TypeScript Language Server show typing errors in the Jest test files of my project. TypeScript configuration files seems to be configured appropriately and I get no runtime errors.
I'm assuming the problem comes from the fact that your tsconfig.json contains "types": ["cypress"] but I don't understand why this would affect the Jest test files of my project which have their specific TypeScript configuration to avoid typing conflicts with Cypress.
Desired behavior
I would like to be able to use this library without causing typing conflicts between Jest and Cypress.
Open the repository with the latest version of VS Code
Open the file apps/frontend-device/src/app/app.component.spec.ts and notice the typing errors.
Open the file apps/frontend-device/src/app/app.component.cy.ts and comment out line 3, which contains import '@badeball/cypress-cucumber-preprocessor';
Open the file apps/frontend-device/src/app/app.component.spec.ts and notice that the typing errors are gone.
Current behavior
This issue is a duplicate from another one I created in a different repo but I would like your input on the matter.
Importing code from this library in a Cypress component test file makes VS Code's TypeScript Language Server show typing errors in the Jest test files of my project. TypeScript configuration files seems to be configured appropriately and I get no runtime errors.
I'm assuming the problem comes from the fact that your
tsconfig.json
contains"types": ["cypress"]
but I don't understand why this would affect the Jest test files of my project which have their specific TypeScript configuration to avoid typing conflicts with Cypress.Desired behavior
I would like to be able to use this library without causing typing conflicts between Jest and Cypress.
Test code to reproduce
Here is a repository that replicates the issue: https://github.com/zilia-gmethot/jest-cypress-conflict.
apps/frontend-device/src/app/app.component.spec.ts
and notice the typing errors.apps/frontend-device/src/app/app.component.cy.ts
and comment out line 3, which containsimport '@badeball/cypress-cucumber-preprocessor';
apps/frontend-device/src/app/app.component.spec.ts
and notice that the typing errors are gone.Versions
Checklist
[email protected]
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: