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

RangeError: Maximum call stack size exceeded #5180

Closed
sdgluck opened this issue Dec 26, 2017 · 2 comments
Closed

RangeError: Maximum call stack size exceeded #5180

sdgluck opened this issue Dec 26, 2017 · 2 comments

Comments

@sdgluck
Copy link

sdgluck commented Dec 26, 2017

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Exits with RangeError when no config file (e.g. package.json?) can be found via traversal up the directory tree:

$ jest --watch
RangeError: Maximum call stack size exceeded
    at String.slice (native)
    at normalizeStringWin32 (path.js:85:22)
    at Object.resolve (path.js:325:20)
    at resolveConfigPathByTraversing (C:\nvm\v8.0.0\node_modules\jest\node_modules\jest-config\build\resolve_config_path.js:57:54)
    at resolveConfigPathByTraversing (C:\nvm\v8.0.0\node_modules\jest\node_modules\jest-config\build\resolve_config_path.js:74:10)
    at resolveConfigPathByTraversing (C:\nvm\v8.0.0\node_modules\jest\node_modules\jest-config\build\resolve_config_path.js:74:10)
    at resolveConfigPathByTraversing (C:\nvm\v8.0.0\node_modules\jest\node_modules\jest-config\build\resolve_config_path.js:74:10)
    at resolveConfigPathByTraversing (C:\nvm\v8.0.0\node_modules\jest\node_modules\jest-config\build\resolve_config_path.js:74:10)
    at resolveConfigPathByTraversing (C:\nvm\v8.0.0\node_modules\jest\node_modules\jest-config\build\resolve_config_path.js:74:10)
    at resolveConfigPathByTraversing (C:\nvm\v8.0.0\node_modules\jest\node_modules\jest-config\build\resolve_config_path.js:74:10)

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.

Run jest in a folder where no Jest config is in the cwd or parent directories.

What is the expected behavior?

e.g. Jest would exit with a message saying "no config found".

Happy to put in a PR for this if we agree on an appropriate message.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

N/A

@SimenB
Copy link
Member

SimenB commented Dec 26, 2017

This was recently fixed, I think. See #5161. Closing, but happy to reopen if you disagree!

@SimenB SimenB closed this as completed Dec 26, 2017
@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 13, 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