Skip to content

redux tests #38

@Guin-

Description

@Guin-

Might not be worth it to test this. Test tries to make actual call upon calling the action creator and throws error because it expects to fetch an absolute url. Lots of ugly workarounds, and don't want to include anything that changes/adds to the actual code for the sake of getting a test working.

https://medium.com/@kellyrmilligan/testing-async-actions-in-redux-with-isomorphic-fetch-and-fetch-mock-35f98c6c2ee7

https://medium.com/@ferrannp/unit-testing-with-jest-redux-async-actions-fetch-9054ca28cdcd

nock/nock#431

https://medium.com/@colinlmcdonald/relative-url-testing-react-redux-with-nock-1a1ac31afabf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions