From c5bade63edd9647df35f056afe9d62883070769e Mon Sep 17 00:00:00 2001 From: Michael Hladky Date: Fri, 3 Feb 2023 21:38:38 +0100 Subject: [PATCH] fix: fix withProject utils --- packages/node-cli-testing/cli-project/src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node-cli-testing/cli-project/src/lib/utils.ts b/packages/node-cli-testing/cli-project/src/lib/utils.ts index d45a903..8753fcb 100644 --- a/packages/node-cli-testing/cli-project/src/lib/utils.ts +++ b/packages/node-cli-testing/cli-project/src/lib/utils.ts @@ -50,7 +50,7 @@ export function withProject(cfg: any, fn: (prj: unknown) => Promi return async () => { let prj = await CliProjectFactory.create(cfg); await prj.setup(); - await fn(prj).finally(prj.teardown); + await fn(prj).finally(() => prj.teardown()); } }