You can achieve the same using an async function, see the Migration guide Done ... async () => { await expect(myAsyncFunc()).rejects.
確定! 回上一頁