Update Metro to 0.60.0 (#1380)
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/1380 Updated Metro to 0.60.0 Reviewed By: mweststrate Differential Revision: D22453798 fbshipit-source-id: 14c5bacf88bc31bd3dd06ad42edf271769a4a669
This commit is contained in:
committed by
Facebook GitHub Bot
parent
23758a8fbf
commit
30213e118f
@@ -8,7 +8,13 @@
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import {render, fireEvent, waitFor, act} from '@testing-library/react';
|
||||
import {
|
||||
render,
|
||||
fireEvent,
|
||||
waitFor,
|
||||
act,
|
||||
waitForElement,
|
||||
} from '@testing-library/react';
|
||||
|
||||
import ManagedDataInspector from '../ManagedDataInspector';
|
||||
import {sleep} from '../../../../utils';
|
||||
@@ -61,7 +67,7 @@ test('changing collapsed property works', async () => {
|
||||
res.rerender(
|
||||
<ManagedDataInspector data={json} collapsed={false} expandRoot />,
|
||||
);
|
||||
await waitFor(() => res.findByText(/cool/));
|
||||
await waitForElement(() => res.findByText(/cool/));
|
||||
|
||||
res.rerender(
|
||||
<ManagedDataInspector data={json} collapsed={true} expandRoot />,
|
||||
|
||||
Reference in New Issue
Block a user