Skip to content

Commit

Permalink
Merge pull request #2305 from IDEMSInternational/fix/e2e-tests-prettier
Browse files Browse the repository at this point in the history
test: fix issue with e2e-data parse script
  • Loading branch information
chrismclarke authored Apr 29, 2024
2 parents 25a135f + 6269b82 commit 8aabf2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scripts/src/commands/e2e-data/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default program
.description("Parse worksheet into JS!")
.requiredOption("-i --input <string>", "path to input xlsx file (relative to project root)")
.requiredOption("-o --output <string>", "path to output spec file (relative to project root")
.action((options: IProgramOptions) => {
.action(async (options: IProgramOptions) => {
// Setup Input and Outputs
const { input, output } = options;
const inputPath = path.resolve(ROOT_DIR, input);
Expand Down Expand Up @@ -54,7 +54,7 @@ export default program
outputs.push(output);
});
const specData = outputs.join("\n");
const formattedOutput = prettier.format(specData, { parser: "babel" });
const formattedOutput = await prettier.format(specData, { parser: "babel" });
fs.writeFileSync(outputPath, formattedOutput);
});

Expand Down

0 comments on commit 8aabf2b

Please sign in to comment.