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

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/1795>
environments/review-docs-merge-hoc7bt/deployments/18064
Kasper Seweryn 2023-06-14 00:50:06 +02:00
rodzic e1a217ffa0
commit 05c8471ab8
3 zmienionych plików z 8 dodań i 9 usunięć

7
front/cypress/cypress.d.ts vendored 100644
Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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