Skip to content

Commit

Permalink
gen2e-po: path arg defaulted to cwd/dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
rhighs committed Jun 26, 2024
1 parent 27108c1 commit d056443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gen2e-po/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const findDumps = async (dir: string = "./dumps"): Promise<string[]> =>
const parseDump = async (filePath: string): Promise<Gen2ERecordingDump> =>
JSON.parse((await readFile(filePath)).toString());

export const loadDumps = async () =>
findDumps(DUMPS_DATA_PATH).then((dumps) =>
export const loadDumps = async (dir: string = DUMPS_DATA_PATH) =>
findDumps(dir).then((dumps) =>
Promise.all(dumps.map((d) => parseDump(d)))
);

Expand Down

0 comments on commit d056443

Please sign in to comment.