Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Use service worker for api mocking in tests #3

Closed
johnhunter opened this issue Oct 24, 2022 · 2 comments · May be fixed by #7
Closed

Use service worker for api mocking in tests #3

johnhunter opened this issue Oct 24, 2022 · 2 comments · May be fixed by #7
Assignees
Labels
enhancement New feature or request

Comments

@johnhunter
Copy link
Owner

See https://mswjs.io/

@johnhunter johnhunter added the enhancement New feature or request label Oct 24, 2022
@johnhunter johnhunter self-assigned this Oct 24, 2022
@johnhunter
Copy link
Owner Author

Mocking at the network level makes tests closer to actual use but reduces isolation within tests. Consider using network mocking for fewer end-to-end style tests but mock the data fetching layer in component tests.

@johnhunter
Copy link
Owner Author

Complete

@johnhunter johnhunter linked a pull request Sep 22, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant