Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 9.9.0 breaks test suite of Jest #19607

Closed
SimenB opened this issue Mar 26, 2018 · 6 comments
Closed

Node 9.9.0 breaks test suite of Jest #19607

SimenB opened this issue Mar 26, 2018 · 6 comments

Comments

@SimenB
Copy link
Member

SimenB commented Mar 26, 2018

  • 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:/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'); 
 }; 
@bnoordhuis
Copy link
Member

I can look into it but I'd appreciate a standalone test case.

@SimenB
Copy link
Member Author

SimenB commented Mar 26, 2018

It's completely empty at the office, so I spent some time bisecting, and this commit is the one that introduced the failure: a9bd8bf.

I'll see if I can find the time to reduce the test case, no promises though

@SimenB
Copy link
Member Author

SimenB commented Mar 26, 2018

Seems like a revert fix is incoming: #19237

@simonkberg
Copy link

Fix landed in #19520

@SimenB
Copy link
Member Author

SimenB commented Mar 26, 2018

I can apply that commit and see if it passes

@SimenB
Copy link
Member Author

SimenB commented Mar 26, 2018

Yup, v9.9.0 with a0adf56 applied passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants