toBe() 便是其中之一,其他常见用法如下: ... 取反,用法见下面例子 ... async () => { expect.assertions(1); let mockFn = jest.fn(); await fetch.
確定! 回上一頁