For stubbing and mocking functions, we recommend sinon. Sinon ships an es module, you can import it in your tests like this: import { stub, spy ...
確定! 回上一頁