Skip to content

Commit

Permalink
fix: fix withProject utils
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton authored Feb 3, 2023
2 parents ebd42a9 + c5bade6 commit 5fe5175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node-cli-testing/cli-project/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function withProject<T extends { }>(cfg: any, fn: (prj: unknown) => Promi
return async () => {
let prj = await CliProjectFactory.create<T>(cfg);
await prj.setup();
await fn(prj).finally(prj.teardown);
await fn(prj).finally(() => prj.teardown());
}
}

0 comments on commit 5fe5175

Please sign in to comment.