Mirror: React hooks for accessible, common web interactions. UI super powers without the UI.
1// ***********************************************************
2// This example support/component.ts is processed and
3// loaded automatically before your test files.
4//
5// This is a great place to put global configuration and
6// behavior that modifies Cypress.
7//
8// You can change the location of this file or turn off
9// automatically serving support files with the
10// 'supportFile' configuration option.
11//
12// You can read more here:
13// https://on.cypress.io/configuration
14// ***********************************************************
15
16import 'cypress-real-events/support';
17
18import './commands';
19
20import { mount } from 'cypress/react';
21
22// Augment the Cypress namespace to include type definitions for
23// your custom command.
24// Alternatively, can be defined in cypress/support/component.d.ts
25// with a <reference path="./component" /> at the top of your spec.
26declare global {
27 namespace Cypress {
28 interface Chainable {
29 mount: typeof mount;
30 }
31 }
32}
33
34Cypress.Commands.add('mount', mount);
35
36// Example use:
37// cy.mount(<MyComponent />)