Skip to content

Exit code with --findRelatedTests #5112

@boccob

Description

@boccob

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
If Jest with --findRelatedTests flag does not detect any related tests it exits with exit code 1.

What is the expected behavior?
In this case, it'd be good to exit with exit code 0. So it won't fail pre-commit hook with lint-staged for example.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

Jest 22, node 7.7.6, npm 4.1.2, win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions