Skip to content

Commit 420cad4

Browse files
committed
Change to cypress/react18
1 parent 3614b5c commit 420cad4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as React from 'react';
2-
import { mount } from 'cypress/react';
32
import { MainApp } from '../../src/app/MainApp';
43

54
describe('Health check for Cypress component test', () => {
65
it('should mount MainApp', () => {
7-
mount(<MainApp />);
6+
cy.mount(<MainApp />);
87
cy.get('div').should('include.text', 'hello world');
98
});
109
});

tests_fixtures/standalone_template/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import './commands';
1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')
2121

22-
import { mount } from 'cypress/react';
22+
import { mount } from 'cypress/react18';
2323

2424
// Augment the Cypress namespace to include type definitions for
2525
// your custom command.

0 commit comments

Comments
 (0)