jest.mock() mock 一个模块; jest.spy() 用于监听模块行为 ... 所以需要安装依赖: yarn add ts-jest @types/jest --dev. 然后修改 jest.config.js ...
確定! 回上一頁