···11// ***********************************************************
22-// This example support/index.js is processed and
22+// This example support/component.js is processed and
33// loaded automatically before your test files.
44//
55// This is a great place to put global configuration and
···1313// https://on.cypress.io/configuration
1414// ***********************************************************
15151616-// Import commands.js using ES2015 syntax:
1717-import './commands';
1616+import { mount } from 'cypress/react';
1717+1818+Cypress.Commands.add('mount', mount);
18191919-// Alternatively you can use CommonJS syntax:
2020-// require('./commands')
2020+// Example use:
2121+// cy.mount(<MyComponent />)
···11// ***********************************************************
22-// This example support/index.js is processed and
22+// This example support/component.js is processed and
33// loaded automatically before your test files.
44//
55// This is a great place to put global configuration and
···1313// https://on.cypress.io/configuration
1414// ***********************************************************
15151616-// Import commands.js using ES2015 syntax:
1717-import './commands';
1616+import { mount } from 'cypress/react';
18171919-// Alternatively you can use CommonJS syntax:
2020-// require('./commands')
1818+Cypress.Commands.add('mount', mount);