Skip to content

Tests picked up in yarn cache directory #3827

Closed
@jmorrell

Description

@jmorrell

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

Bug

What is the current behavior?

When $HOME is the same as the application directory yarn will default to putting its cache directory at $APP_DIR/.cache/yarn/v1/... and Jest will pick up tests in dependencies.

This happens to users trying to use Jest with Heroku CI, where $HOME is /app.

What is the expected behavior?

Jest should ignore the yarn cache directory as a smart default like it currently does for node_modules.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions