-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Bump kcd-scripts to 11.x (#921)
- Loading branch information
Showing
8 changed files
with
59 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,18 +32,18 @@ test('async act works even when the act is an old one', async () => { | |
console.error('sigil') | ||
}) | ||
expect(console.error.mock.calls).toMatchInlineSnapshot(` | ||
Array [ | ||
Array [ | ||
"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.", | ||
], | ||
Array [ | ||
"sigil", | ||
], | ||
] | ||
`) | ||
Array [ | ||
Array [ | ||
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., | ||
], | ||
Array [ | ||
sigil, | ||
], | ||
] | ||
`) | ||
expect(callback).toHaveBeenCalledTimes(1) | ||
|
||
// and it doesn't warn you twice | ||
|
@@ -71,10 +71,10 @@ test('async act recovers from async errors', async () => { | |
expect(console.error.mock.calls).toMatchInlineSnapshot(` | ||
Array [ | ||
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.", | ||
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., | ||
], | ||
Array [ | ||
"call console.error", | ||
call console.error, | ||
], | ||
] | ||
`) | ||
|
@@ -92,7 +92,7 @@ test('async act recovers from sync errors', async () => { | |
expect(console.error.mock.calls).toMatchInlineSnapshot(` | ||
Array [ | ||
Array [ | ||
"call console.error", | ||
call console.error, | ||
], | ||
] | ||
`) | ||
|
@@ -109,11 +109,11 @@ test('async act can handle any sort of console.error', async () => { | |
Array [ | ||
Array [ | ||
Object { | ||
"error": "some error", | ||
error: some error, | ||
}, | ||
], | ||
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.", | ||
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., | ||
], | ||
] | ||
`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters