test-runner icon indicating copy to clipboard operation
test-runner copied to clipboard

[bug] Add support for passWithNoTests

Open jonthomp opened this issue 2 years ago • 0 comments

Describe the bug Add support for passWithNoTests

To Reproduce Steps to reproduce the behavior:

  1. Run test-storybook against stories that do not have any tests
  2. Notice the following console message:
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
  1. Run tests again using the --passWithNoTests flag
  2. Fails with this message: error: unknown option '--passWithNoTests'

Expected behavior Support the --passWithNoTests flag to exit with code 0 when there are no tests

Screenshots If applicable, add screenshots to help explain your problem.

System Storybook Environment Info:

System: OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish) CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz Shell: 5.8.1 - /usr/bin/zsh Binaries: Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node npm: 10.1.0 - ~/Development/next/PDP/TotalPlatform.UI/node_modules/.bin/npm <----- active Browsers: Chrome: 119.0.6045.159 npmPackages: @storybook/addon-a11y: ^7.4.5 => 7.4.6 @storybook/addon-coverage: ^0.0.9 => 0.0.9 @storybook/addon-designs: ^7.0.5 => 7.0.5 @storybook/addon-docs: ^7.4.5 => 7.4.6 @storybook/addon-essentials: 7.4.5 => 7.4.5 @storybook/addon-interactions: ^7.4.5 => 7.4.6 @storybook/core-common: ^7.4.5 => 7.4.6 @storybook/core-server: 7.4.5 => 7.4.5 @storybook/jest: ^0.2.2 => 0.2.2 @storybook/nextjs: ^7.4.6 => 7.4.6 @storybook/preview-api: ^7.4.5 => 7.4.6 @storybook/react-vite: 7.4.5 => 7.4.5 @storybook/react-webpack5: 7.4.5 => 7.4.5 @storybook/test-runner: ^0.13.0 => 0.13.0 @storybook/testing-library: ^0.2.1 => 0.2.2

Additional context Add any other context about the problem here.

jonthomp avatar Dec 04 '23 16:12 jonthomp