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

Api/mocking #4

Merged
merged 3 commits into from
Oct 20, 2020
Merged

Api/mocking #4

merged 3 commits into from
Oct 20, 2020

Conversation

TseHang
Copy link
Owner

@TseHang TseHang commented Oct 20, 2020

Description

https://www.notion.so/mengtse/5-api-mocking-init-and-CRUD-ba9710f3368741939ab2ec411a63cc8b

At the beginning, I try Apollo Mocking new scheme in frontend, but it didn't work.

Finally I use msw.js to simulate api behavior by service worker.

This pr implement:

  1. MSW worker & handlers
  2. auto-generated apollo client typings
  3. fix styled-component in sir

Demo

Now we can get data from worker using msw.js
demo video

@TseHang TseHang merged commit b1d3980 into master Oct 20, 2020
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.

1 participant