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

[optional] add api mocks #213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

nipuna-g
Copy link
Collaborator

@nipuna-g nipuna-g commented Dec 3, 2023

This is an optional PR to add mock API responses to make the development experience a bit nicer.

To enable the mocks, you need to create a .env file and set NEXT_PUBLIC_API_MOCKING=enabled.

This will then return values from the mock service worker making the application faster to test. We could use these mocks in the future for Storybook and tests if needed.

@nipuna-g nipuna-g force-pushed the feature/add-mock-api-responses branch from 71239b1 to 4100423 Compare December 3, 2023 07:33
@nipuna-g nipuna-g force-pushed the feature/add-mock-api-responses branch from 4100423 to 91c3a2c Compare December 3, 2023 07:39
@neozhixuan
Copy link
Collaborator

This looks great! I think we can merge this in when the overall web app is more complete

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