Impactworkers / iw-complaint-manager

Impactworkers Complaint Manager
1 stars 0 forks source link

Create mock Okta context for storybook #93

Open justin-c-anthony opened 1 month ago

justin-c-anthony commented 1 month ago

When using storybook, any component that relies on using the useOktaAuth() hook provided by the SDK, will break with out have a mocked instance of the okta context.

Notes There is currently very little documentation on mocking the okta context for next with app router

justin-c-anthony commented 1 month ago

SO far I have tried recreating the okta context using react context with no luck, I have also tried mocking the return value from the custom hook that makes the fetch call with no luck either