Looks like you need to let jest know that the expect is an async method, with resolves . Here is the sample code from Jest's documentation:
確定! 回上一頁