Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Add support for passWithNoTests #413

Open
jonthomp opened this issue Dec 4, 2023 · 0 comments
Open

[bug] Add support for passWithNoTests #413

jonthomp opened this issue Dec 4, 2023 · 0 comments

Comments

@jonthomp
Copy link

jonthomp commented Dec 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant