Skip to content

Commit

Permalink
Merge pull request #327 from happo/sort-test-files
Browse files Browse the repository at this point in the history
Sort files in findTestFiles
  • Loading branch information
lencioni authored Feb 13, 2025
2 parents c286272 + c795cb5 commit 6acb953
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/findTestFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ export default async function findTestFiles(pattern) {
const files = await glob(pattern, {
ignore: ['**/node_modules/**', '**/dist/**', '**/build/**'],
});
return files;

// Sort the files to make the output deterministic.
return files.sort((a, b) => a.localeCompare(b));
}

0 comments on commit 6acb953

Please sign in to comment.