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

Jest tests never executes when path contain brackets #5172

Closed
Bootta11 opened this issue Dec 25, 2017 · 4 comments
Closed

Jest tests never executes when path contain brackets #5172

Bootta11 opened this issue Dec 25, 2017 · 4 comments

Comments

@Bootta11
Copy link

Bootta11 commented Dec 25, 2017

Hi,

Im using jest on Windows 7. When i place project on path that contain some kind of brackets([], {}, ()) test can be found using testRegex option but it never executes?

Console output:

10 files checked.

testMatch: /tests//*.{spec,test}.js - 1 match

testPathIgnorePatterns: \node_modules\ - 10 matches

Pattern: - 0 matches

npm ERR! code ELIFECYCLE
Console output screenshoot

I tried to remove brackets from folder and it works as expected.

Jest verision used: 22.0.4

@SimenB
Copy link
Member

SimenB commented Dec 25, 2017

I thinks this, in practice, is a dupe of #4838. Different places, but I think the underlying issue is that we don't escape patterns and regexes

@Bootta11
Copy link
Author

Bootta11 commented Dec 25, 2017

@SimenB But why test is found(there is 1 test match) but never executed?

@SimenB
Copy link
Member

SimenB commented May 27, 2018

I'm gonna take a chance and close this. Happy to reopen if it's still in issue in Jest 23!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants