jest.spyOn(App.prototype, 'componentDidMount'). const wrapper = shallow(<App />). expect(App.prototype.componentDidMount.mock.calls.length).
確定! 回上一頁