1
0
mirror of synced 2026-01-07 18:01:41 -05:00

Clean up jest (#50177)

This commit is contained in:
Peter Bengtsson
2024-04-16 15:38:46 -04:00
committed by GitHub
parent a863eab83f
commit 227e4e2bbf
24 changed files with 55 additions and 3071 deletions

View File

@@ -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)