Skip to content

Node 9.9.0 breaks test suite of Jest #19607

Closed
@SimenB

Description

@SimenB
  • Version: v9.9.0
  • Platform: Darwin Simens-MBP 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
  • Subsystem: Unsure

The Jest test suite contains a test which passes on node 6, node 8 and node 9.8.0, but fails on node 9.9.0. I opened up an issue in the jest repo with more details: jestjs/jest#5871.

I'll see if I can find the time to rebase node to narrow down the commit, but with Easter coming up I'm not sure.

My shot in the dark is that the regex here is treated differently in node 9.9.0: https://github.com/facebook/jest/blob/2bd5dfddfef425348760807d12348829a9a82d30/packages/jest-config/src/utils.js#L51-L53

Copy pasted for easier viewing:

 export const escapeGlobCharacters = (path: Path): Glob => { 
   return path.replace(/([()*{}\[\]!?\\])/g, '\\$1'); 
 }; 

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