chore(deps): bump deps (#21632)

This commit is contained in:
Adam Bradley
2020-06-29 10:21:06 -05:00
committed by GitHub
parent 7a29e0e3c7
commit ce6e637787
22 changed files with 23862 additions and 1221 deletions

View File

@ -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';

View File

@ -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)

View File

@ -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);

View File

@ -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']);
});