Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/__tests__/old-act.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] to remove this warning.",
Expand Down
2 changes: 1 addition & 1 deletion src/act-compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function asyncAct(cb) {
) {
// no-op
} else {
originalConsoleError.call(console, args)
originalConsoleError.apply(console, args)
}
}
let cbReturn, result
Expand Down