Open daniel-ac-martin opened 3 months ago
See: https://gist.github.com/easternbloc/73a60ade964215ab342d029a3405f541
Thanks to @easternbloc for pointing this out.
Basically, https://github.com/daniel-ac-martin/NotGovUK/blob/master/.storybook/main.js is copied into the new project, but makes references to explicit components in NotGovUK. Instead we should probably use a wildcard. i.e:
stories: [ '../components/*/spec/*.stories.@(js|mdx)' ],
Additionally, the current storybook requires the ./.jest-results.json file to exist. This doesn't exist when the project is first generated. It can be generated by running npm test but we should probably create a dummy file. e.g:
./.jest-results.json
npm test
echo '[]' > .jest-results.json
See: https://gist.github.com/easternbloc/73a60ade964215ab342d029a3405f541
Thanks to @easternbloc for pointing this out.
Basically, https://github.com/daniel-ac-martin/NotGovUK/blob/master/.storybook/main.js is copied into the new project, but makes references to explicit components in NotGovUK. Instead we should probably use a wildcard. i.e:
Additionally, the current storybook requires the
./.jest-results.json
file to exist. This doesn't exist when the project is first generated. It can be generated by runningnpm test
but we should probably create a dummy file. e.g: