NodeJS
Install NodeJS ^16.13.0
Yarn
Install yarn globally
npm i -g yarn
GitHub Package Registry
Login to GPR: https://docs.github.com/en/packages/guides/configuring-npm-for-use-with-github-packages
Install the dependencies
yarn
Run prepare
hook manually as yarn@2 is not supporting lifetime hooks of npm
Run your local storybook
yarn start
yarn run coverage
To be able to run tests, storybook yarn start
must be run in a separate terminal window.
This runs jest unit tests and storybook test runner tests. The test-runner coverage json file is then converted into lcov format.
Tests coverage results merged.
Jest Unit tests are saved to ./coverage/unit/
Storybook test runner coverage results are saved to ./coverage/storybook
Merged test resulst are saved to ./coverage/merged
yarn run coverage
./coverage/unit/lcov-report/src/Navigation/NavigationRoot.ts.html
./coverage/storybook/lcov-report/src/Navigation/NavigationRoot.ts.html