Skip to content

Commit

Permalink
refactor: sort fileMatch result for deterministic ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Sep 13, 2020
1 parent 6c9c4ac commit 2c9ebbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -26,14 +26,14 @@ Array [

exports[`workers/repository/extract/file-match getMatchingFiles() deduplicates 1`] = `
Array [
"package.json",
"frontend/package.json",
"package.json",
]
`;

exports[`workers/repository/extract/file-match getMatchingFiles() returns npm files 1`] = `
Array [
"package.json",
"frontend/package.json",
"package.json",
]
`;
2 changes: 1 addition & 1 deletion lib/workers/repository/extract/file-match.ts
Expand Up @@ -61,5 +61,5 @@ export async function getMatchingFiles(
);
}
// filter out duplicates
return [...new Set(matchedFiles)];
return [...new Set(matchedFiles)].sort();
}

0 comments on commit 2c9ebbe

Please sign in to comment.