Skip to content

--projects should filter by directory #5199

@ericclemmons

Description

@ericclemmons

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

Bug.

What is the current behavior?

Jest incorrectly processes files instead of only the folders within them.

$ jest --projects packages/*
/Users/eric/Projects/my/project/packages/README.md:1
(function (exports, require, module, __filename, __dirname) { # My Project
                                                              ^

SyntaxError: Invalid or unexpected token

What is the expected behavior?

Filter by .isDirectory().

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

jest@22.0.4
yarn@1.3.2
node@8.9.1

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