fix(cypress): move typings to a .d.ts file

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/1795>
This commit is contained in:
Kasper Seweryn 2023-06-14 00:50:06 +02:00
parent e1a217ffa0
commit 05c8471ab8
3 changed files with 8 additions and 9 deletions

7
front/cypress/cypress.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
declare global {
namespace Cypress {
interface Chainable {
login(): Chainable<JQuery<HTMLElement>>
}
}
}

View File

@ -1,9 +1 @@
import './commands'
declare global {
namespace Cypress {
interface Chainable {
login(): Chainable<JQuery<HTMLElement>>
}
}
}

View File

@ -4,6 +4,6 @@
"lib": ["es5", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts"],
"include": ["**/*.ts", "./cypress.d.ts"],
"isolatedModules": false
}