We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b92bfb commit 07184ffCopy full SHA for 07184ff
1 file changed
web/cypress/support/component.ts
@@ -1,15 +1,7 @@
1
-import React from 'react';
2
-import ReactDOM from 'react-dom';
+import { mount } from 'cypress/react';
3
import '@patternfly/react-core/dist/styles/base.css';
4
import * as ReactI18next from 'react-i18next';
5
6
-function mount(jsx: React.ReactElement) {
7
- const root = document.querySelector('[data-cy-root]');
8
- return cy.then(() => {
9
- ReactDOM.render(jsx, root);
10
- });
11
-}
12
-
13
declare global {
14
// eslint-disable-next-line @typescript-eslint/no-namespace
15
namespace Cypress {
0 commit comments