We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cbbaf commit 9ab323fCopy full SHA for 9ab323f
cypress/support/component.ts
@@ -35,7 +35,13 @@ declare global {
35
}
36
37
38
-Cypress.Commands.add('mount', mount)
+Cypress.Commands.add('mount', (component, options = {}) => {
39
+ options.global = options.global || {}
40
+ options.global.stubs = options.global.stubs || {}
41
+ options.global.stubs.transition = false
42
+
43
+ return mount(component, options)
44
+})
45
46
// Example use:
-// cy.mount(MyComponent)
47
+// cy.mount(MyComponent)
0 commit comments