Skip to content

Tests do not fail if coverage does not meet thresholds #670

Open

Description

@kennethbigler

Describe the bug

When running yarn test, if your tests do not meet jest coverage thresholds, your tests will still pass.

To Reproduce

Add a coverage threshold that is not met, and verify that test will still pass, even though an error is showing.

Expected behavior

If coverage thresholds are added, and they aren't met, the tests should fail. Preferably it would specify that it failed due to coverage.

Screenshots

image (3)

Desktop (please complete the following information):

  • OS: MacOS Big Sur (11.6)
  • Browser: N/A
  • Version "@design-systems/cli": "4.13.1",

Additional context

Activity

  1. added
    bug
    on Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions