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:
parent
e1a217ffa0
commit
05c8471ab8
|
@ -0,0 +1,7 @@
|
||||||
|
declare global {
|
||||||
|
namespace Cypress {
|
||||||
|
interface Chainable {
|
||||||
|
login(): Chainable<JQuery<HTMLElement>>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1 @@
|
||||||
import './commands'
|
import './commands'
|
||||||
|
|
||||||
declare global {
|
|
||||||
namespace Cypress {
|
|
||||||
interface Chainable {
|
|
||||||
login(): Chainable<JQuery<HTMLElement>>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"lib": ["es5", "dom"],
|
"lib": ["es5", "dom"],
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"]
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts"],
|
"include": ["**/*.ts", "./cypress.d.ts"],
|
||||||
"isolatedModules": false
|
"isolatedModules": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue