You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests won't run if the project's root path contains parentheses #3404
It looks like the parentheses in the path that make up the <rootDir> later passed to Jest's testMatch option by create-react-app's config are being interpreted by Jest as grouping characters. I've filed this as an issue with Jest jestjs/jest#4838 as well.
If escaping is an option and can be done reliably, then that would be great. However, I'm not sure it is an option. I don't know how things work pre-eject, but post-eject, the jest config section of package.json will include the <rootDir> template variable in the values of testMatch. At that point, I don't believe that there would be anything that could be done to tests to run.
Activity
gaearon commentedon Nov 6, 2017
Maybe we need to escape them first?
Regardless, there are bigger issues with parentheses, such as broken watcher behavior in webpack.
We should probably just fail early in this case and ask to move the project folder.
rimunroe commentedon Nov 6, 2017
If escaping is an option and can be done reliably, then that would be great. However, I'm not sure it is an option. I don't know how things work pre-eject, but post-eject, the jest config section of package.json will include the
<rootDir>template variable in the values oftestMatch. At that point, I don't believe that there would be anything that could be done to tests to run.Timer commentedon Dec 8, 2017
Tagging as up for contributions.
gaearon commentedon Jan 8, 2018
This got fixed in jestjs/jest#5224 so it's not actionable here anymore. Thanks!