Skip to content

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

Open
@kennethbigler

Description

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions