Skip to content

Commit df37dcc

Browse files
committed
Fix cypress types
1 parent a7481dc commit df37dcc

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { mount } from 'cypress/react';
2+
3+
declare global {
4+
namespace Cypress {
5+
interface Chainable {
6+
mount: typeof mount
7+
}
8+
}
9+
}

packages/editor-pro/cypress/support/component.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ import './commands';
2121

2222
import { mount } from 'cypress/react';
2323

24-
// Augment the Cypress namespace to include type definitions for
25-
// your custom command.
26-
// Alternatively, can be defined in cypress/support/component.d.ts
27-
// with a <reference path="./component" /> at the top of your spec.
28-
declare global {
29-
namespace Cypress {
30-
interface Chainable {
31-
mount: typeof mount
32-
}
33-
}
34-
}
35-
3624
Cypress.Commands.add('mount', mount);
3725

3826
// Example use:

0 commit comments

Comments
 (0)