diff --git a/src/__tests__/old-act.js b/src/__tests__/old-act.js index 0098ed08..fcd531b4 100644 --- a/src/__tests__/old-act.js +++ b/src/__tests__/old-act.js @@ -34,9 +34,7 @@ test('async act works even when the act is an old one', async () => { expect(console.error.mock.calls).toMatchInlineSnapshot(` Array [ Array [ - Array [ - "sigil", - ], + "sigil", ], Array [ "It looks like you're using a version of react-dom that supports the \\"act\\" function, but not an awaitable version of \\"act\\" which you will need. Please upgrade to at least react-dom@16.9.0 to remove this warning.", diff --git a/src/act-compat.js b/src/act-compat.js index e16b135f..dd5f1d96 100644 --- a/src/act-compat.js +++ b/src/act-compat.js @@ -42,7 +42,7 @@ function asyncAct(cb) { ) { // no-op } else { - originalConsoleError.call(console, args) + originalConsoleError.apply(console, args) } } let cbReturn, result