Clean up jest (#50177)
This commit is contained in:
@@ -38,7 +38,7 @@ describe('FailBot', () => {
|
||||
const backendPromises = FailBot.report(err, { foo: 'bar' })
|
||||
// Note! You don't need to await the promises it returns to be
|
||||
// able to use `FailBot.report()`. It will send.
|
||||
// But here in the context of jest, we need to await *now*
|
||||
// But here in the context of vitest, we need to await *now*
|
||||
// so we can assert that it did make the relevant post requests.
|
||||
// Once we've done this, we can immediate check what it did.
|
||||
await Promise.all(await backendPromises)
|
||||
|
||||
Reference in New Issue
Block a user