Skip to content
Snippets Groups Projects
Commit 2c9ebbe5 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: sort fileMatch result for deterministic ordering

parent 6c9c4ac1
No related branches found
No related tags found
No related merge requests found
......@@ -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",
]
`;
......@@ -61,5 +61,5 @@ export async function getMatchingFiles(
);
}
// filter out duplicates
return [...new Set(matchedFiles)];
return [...new Set(matchedFiles)].sort();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment