chore: upgrade to jest 24 (#15778)

* chore: upgrade to jest 24

* download react-is from npm manually
This commit is contained in:
Simen Bekkhus
2019-10-03 22:44:18 +05:30
committed by Sunil Pai
parent d95d301244
commit 1c7e3494a1
13 changed files with 776 additions and 676 deletions
+2 -3
View File
@@ -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 () => {