mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
chore: upgrade to jest 24 (#15778)
* chore: upgrade to jest 24 * download react-is from npm manually
This commit is contained in:
+2
-3
@@ -25,7 +25,7 @@ export function act(callback: Function): void {
|
||||
});
|
||||
|
||||
// Flush Bridge operations
|
||||
while (global.mockGetTimersCount() > 0) {
|
||||
while (jest.getTimerCount() > 0) {
|
||||
actDOM(() => {
|
||||
actTestRenderer(() => {
|
||||
jest.runAllTimers();
|
||||
@@ -49,8 +49,7 @@ export async function actAsync(
|
||||
});
|
||||
|
||||
if (recursivelyFlush) {
|
||||
// TODO (Jest v24) Replace with jest.getTimerCount() after we upgrade Jest
|
||||
while (global.mockGetTimersCount() > 0) {
|
||||
while (jest.getTimerCount() > 0) {
|
||||
// $FlowFixMe Flow doens't know about "await act()" yet
|
||||
await actDOM(async () => {
|
||||
await actTestRenderer(async () => {
|
||||
|
||||
Reference in New Issue
Block a user