Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock API in tests #17

Closed
wants to merge 2 commits into from
Closed

Mock API in tests #17

wants to merge 2 commits into from

Conversation

akirk
Copy link
Collaborator

@akirk akirk commented Feb 2, 2021

This adds some mocking using https://github.com/wheresrhys/fetch-mock-jest. My plan is to build a library of test site data to cover a bigger range of the extraction process, so that the development can be partially decoupled from having to be logged in.

Ideally, the extension could be use to create the test data itself, logging the fetch requests it runs and generating a file that can be used for more test data.

@pento
Copy link
Owner

pento commented Feb 3, 2021

I've merged #15, which updates package-lock.json to be generated by NPM 7. Rebasing this PR should reduce the size of the diff. 🙂

@akirk
Copy link
Collaborator Author

akirk commented Feb 3, 2021

Closing in favor of #20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants