fix: cypress plugins
This commit is contained in:
parent
77466e3373
commit
c6d214b9eb
7 changed files with 97 additions and 45 deletions
12
src/types/cypress.d.ts
vendored
Normal file
12
src/types/cypress.d.ts
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { mount } from 'cypress/vue'
|
||||
|
||||
type MountParams = Parameters<typeof mount>;
|
||||
type OptionsParam = MountParams[1];
|
||||
|
||||
declare global {
|
||||
namespace Cypress {
|
||||
interface Chainable {
|
||||
mount: typeof mount;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue