mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(deps): bump deps (#21632)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { render, fireEvent, cleanup } from 'react-testing-library';
|
||||
import { render, fireEvent, cleanup } from '@testing-library/react';
|
||||
import { IonButton } from '../index';
|
||||
import { defineCustomElements } from '@ionic/core/loader';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { IonTabs, IonTabButton, IonLabel, IonIcon, IonTabBar} from '../index';
|
||||
import { render, cleanup } from 'react-testing-library';
|
||||
import { render, cleanup } from '@testing-library/react';
|
||||
import { IonRouterOutlet } from '../IonRouterOutlet';
|
||||
|
||||
afterEach(cleanup)
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { JSX } from '@ionic/core';
|
||||
import { createReactComponent } from '../createComponent';
|
||||
import { render, fireEvent, cleanup, RenderResult } from 'react-testing-library';
|
||||
import { render, fireEvent, cleanup, RenderResult } from '@testing-library/react';
|
||||
import { IonButton } from '../index';
|
||||
|
||||
afterEach(cleanup);
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as utils from '../utils';
|
||||
import 'jest-dom/extend-expect'
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
|
||||
describe('isCoveredByReact', () => {
|
||||
it('should identify standard events as covered by React', () => {
|
||||
@ -47,7 +47,7 @@ describe('attachProps', () => {
|
||||
});
|
||||
|
||||
expect((div as any).testprop).toEqual(['red']);
|
||||
expect(div).toHaveStyle('');
|
||||
expect(div).toHaveStyle(`display: block;`);
|
||||
expect(Object.keys((div as any).__events)).toEqual(['ionClick']);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user