diff --git a/packages/cache/src/cli/compileWalletSetupFunctions.ts b/packages/cache/src/cli/compileWalletSetupFunctions.ts index 1fa1e818..8e03de20 100644 --- a/packages/cache/src/cli/compileWalletSetupFunctions.ts +++ b/packages/cache/src/cli/compileWalletSetupFunctions.ts @@ -19,7 +19,7 @@ export async function compileWalletSetupFunctions(walletSetupDir: string, debug: fs.ensureDirSync(outDir) const globPattern = createGlobPattern(walletSetupDir) - const fileList = await glob(globPattern) + const fileList = (await glob(globPattern)).sort() if (debug) { console.log('[DEBUG] Found the following wallet setup files:') diff --git a/packages/cache/src/utils/getWalletSetupFiles.ts b/packages/cache/src/utils/getWalletSetupFiles.ts index 41bd2f05..a703e6ab 100644 --- a/packages/cache/src/utils/getWalletSetupFiles.ts +++ b/packages/cache/src/utils/getWalletSetupFiles.ts @@ -27,5 +27,5 @@ export async function getWalletSetupFiles(walletSetupDirPath: string) { ) } - return fileList + return fileList.sort() } diff --git a/wallets/metamask/src/playwright/fixtures/metaMaskFixtures.ts b/wallets/metamask/src/playwright/fixtures/metaMaskFixtures.ts index 03fdaf6c..21ac48de 100644 --- a/wallets/metamask/src/playwright/fixtures/metaMaskFixtures.ts +++ b/wallets/metamask/src/playwright/fixtures/metaMaskFixtures.ts @@ -42,7 +42,7 @@ export const metaMaskFixtures = (walletSetup: ReturnType { - const { walletPassword, hash } = await walletSetup + const { walletPassword, hash } = walletSetup const cacheDirPath = path.join(process.cwd(), CACHE_DIR_NAME, hash) if (!(await fs.exists(cacheDirPath))) { @@ -104,7 +104,7 @@ export const metaMaskFixtures = (walletSetup: ReturnType { - const { walletPassword } = await walletSetup + const { walletPassword } = walletSetup const metamask = new MetaMask(context, _metamaskPage, walletPassword, extensionId)