Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update condition to avoid infinite recursion in Windows platform
  • Loading branch information
Justin-ZS committed Dec 22, 2017
commit f61a6b8bfb523c37797673671cb23ae5421ed1e0
2 changes: 1 addition & 1 deletion packages/jest-config/src/resolve_config_path.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const resolveConfigPathByTraversing = (

// This is the system root.
// We tried everything, config is nowhere to be found ¯\_(ツ)_/¯
if (pathToResolve === path.sep) {
if (pathToResolve === path.dirname(pathToResolve)) {
throw new Error(makeResolutionErrorMessage(initialPath, cwd));
}

Expand Down