-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
- test(frontend): install storybook irv-jamaica#98 installs the Storybook packages and sets up a default config, with some basic component stories for sidebar components.
- docs(frontend): Add storybook docs pages irv-jamaica#120 sets up the docs plugin so that docgen comments can serve as documentation.
- test(frontend): CI tests for storybook irv-jamaica#121 builds the storybook in GitHub Actions, then tests each story with Playwright. Tests are functions attached to each story, using Jest and Testing Library under the hood. If you're familiar with writing Testing Library queries and user interactions, this should be straightforward to set up. You can see a simple story with tests here: https://nismod.github.io/irv-jamaica/?path=/story/details-featuresidebar--default
- test(storybook): stories for the details sidebar irv-jamaica#102 installs Mock Service Worker, and shows how to mock HTTP requests for components that use the API.
- test(frontend): publish the storybook irv-jamaica#125 and nismod/irv-jamaica@da8eef4 publish to GItHub Pages (https://nismod.github.io/irv-jamaica.)
For the initial install, I think I just followed the instructions at https://storybook.js.org/docs/get-started/install.
npx storybook@latest install