From 451b94a119872d245bd84b8b0332cabb14b09351 Mon Sep 17 00:00:00 2001 From: mattcompiles Date: Mon, 8 Apr 2024 12:35:14 +1000 Subject: [PATCH] Fix flaky integration test (#9626) --- packages/core/utils/src/alternatives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/utils/src/alternatives.js b/packages/core/utils/src/alternatives.js index 2c772782a59..5c216281abe 100644 --- a/packages/core/utils/src/alternatives.js +++ b/packages/core/utils/src/alternatives.js @@ -141,5 +141,5 @@ export async function findAlternativeFiles( }); } - return fuzzySearch(potentialFiles, fileSpecifier).slice(0, 2); + return fuzzySearch(potentialFiles.sort(), fileSpecifier).slice(0, 2); }