interface Chainable is not working when i placed custom commands in seperate folders in Cypress

Viewed 14

For me interface Chainable is not working properly i used a file named customCommands.d.ts and had its content as

declare namespace Cypress {
    interface Chainable<Subject> {
        getID(selectorundefined : string): Chainable<any>
         gByLogicName(selectorundefined : string): Chainable<any>
}

I have an implementation of getID in commands.ts but I have implementation of gByLogicName in another folder so for that reason CYpress specs are not finding it and at the same time VIsual studio code is not showing any errors please help me suggest what wrong I did please find my settings as follows

enter image description here

when i run test cases its saying cy.gByLogicName it is not recognized

please help me solve the problem

0 Answers
Related