Skip to content

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.

3 participants