-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(unit-tests): mocked service worker
Added mocked services worker for API mocking. Removed json-server in favor of msw. Added msw handlers that persist the data to localstorage. Installed dependencies: ``` yarn add msw @mswjs/data --dev npx msw init public/ --save ```
- Loading branch information
Showing
23 changed files
with
984 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
REACT_APP_POSTS_API_BASE_URL= "http://localhost:8000/posts" | ||
REACT_APP_API_BASE_URL= "http://localhost:8000" | ||
REACT_APP_MSW_ENABLED=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.