Skip to content

Commit

Permalink
sort project names
Browse files Browse the repository at this point in the history
  • Loading branch information
yacinehmito committed Dec 7, 2019
1 parent 6684aee commit c744596
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jest-core/src/getProjectsRunningMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default function getProjectsRunningMessage(
if (projectNames.length === 1) {
return `Will run one project: ${projectNames[0]}`;
}
const projectsList = projectNames.map(getListElement).join('\n');
const projectsList = projectNames
.map(getListElement)
.sort()
.join('\n');
return `Will run ${projectNames.length} projects:\n` + projectsList;
}

Expand Down

0 comments on commit c744596

Please sign in to comment.