Can not import anything to commands.ts file #26281
Illyuha1705
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my angular project I'm using Cypress. There is a need to import usual function into commands.ts file. Of course, commands.ts has custom commands. The problem is with eslint. After importing something, all custom commands has an issue: Argument of type '"customCommandName"' is not assignable to parameter of type 'keyof Chainable '. Also I have Cypress namespace with Chainable interface, where I'm declaring custom commands. So without imports all works fine
Step to reproduce:
Beta Was this translation helpful? Give feedback.
All reactions