Some runnable examples from theodo-good-tests
4
stars
0
forks
source link
Theodo Good Tests Runnable Examples
📜 Contents
Mocking-Examples
- jest.fn object
- expect.toHaveBeenCalled, expect.toHaveBeenCalledWith, myMock.calls, myMock.results
- mockImplementation, mockReturnValue, mockImplementationOnce, mockReturnValueOnce
- myMock.mockClear, myMock.mockReset
- jest.spyOn
- jest.mock
- requireActual, jest.doMock, default export
Redux-Examples
- Sagas
redux-saga-test-plan
fetch with success and failure
- specific final state
- matchers