As of Today, we cannot use the Storybook Test Runner in Hasura's Console codebase because on some machines some tests are flaky.
As a temporary workaround, if you really need it, you can apply the following changes (without committing them) to use it locally.
PLEASE NOTE: Due to the migration to Nx, these steps will not work for a long time, use them only if you benefit a lot from running all tyhe Storybook tests from the terminal!
- Install
"@storybook/test-runner": "0.6.2",
- Add a new script
"test-storybook": "test-storybook",
- In
console/.storybook
, add a file called "test-runner-jest.config.js" with the following content