Skip to content

Commit

Permalink
feat: completed cache generation
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed Dec 2, 2024
1 parent da05776 commit 135f033
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cache/src/cli/compileWalletSetupFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:')
Expand Down
2 changes: 1 addition & 1 deletion packages/cache/src/utils/getWalletSetupFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export async function getWalletSetupFiles(walletSetupDirPath: string) {
)
}

return fileList
return fileList.sort()
}
4 changes: 2 additions & 2 deletions wallets/metamask/src/playwright/fixtures/metaMaskFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const metaMaskFixtures = (walletSetup: ReturnType<typeof defineWalletSetu
}
},
context: async ({ context: currentContext, _contextPath }, use) => {
const { walletPassword, hash } = await walletSetup
const { walletPassword, hash } = walletSetup

const cacheDirPath = path.join(process.cwd(), CACHE_DIR_NAME, hash)
if (!(await fs.exists(cacheDirPath))) {
Expand Down Expand Up @@ -104,7 +104,7 @@ export const metaMaskFixtures = (walletSetup: ReturnType<typeof defineWalletSetu
await use(extensionId)
},
metamask: async ({ context, extensionId }, use) => {
const { walletPassword } = await walletSetup
const { walletPassword } = walletSetup

const metamask = new MetaMask(context, _metamaskPage, walletPassword, extensionId)

Expand Down

0 comments on commit 135f033

Please sign in to comment.