Skip to content

Failing test in node 9.9.0 #5871

Closed
Closed
@SimenB

Description

@SimenB

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

What is the current behavior?
The test packages/jest-cli/src/__tests__/search_source.test.js fails using node 9.9.0, but passes on node 9.8.0 (and it also passes on node 6 and 8).

The test failing was added in #5224.

  ● SearchSource › testPathsMatching › finds tests with parentheses in their rootDir when using testMatch

    expect(received).toEqual(expected)

    Expected value to equal:
      [StringContaining "__testtests__/test.js"]
    Received:
      []

    Difference:

    - Expected
    + Received

    - Array [
    -   StringContaining "__testtests__/test.js",
    - ]
    + Array []

My shot in the dark is that somehow this regex has changed behavior: https://github.com/facebook/jest/blob/2bd5dfddfef425348760807d12348829a9a82d30/packages/jest-config/src/utils.js#L51-L53

If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.

N/A

What is the expected behavior?
It should pass on node 9.9.0 as well.

Please provide your exact Jest configuration

https://github.com/facebook/jest/tree/2bd5dfddfef425348760807d12348829a9a82d30

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