From 3e2ae3b52daf7f5203247fd4f583b3bda66ea57d Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Mon, 12 Apr 2021 05:13:39 -0400 Subject: [PATCH] Fix types --- test/cli.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cli.test.ts b/test/cli.test.ts index b889d0b1..6e116122 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -24,7 +24,7 @@ function run (args: any[]) { stderr += data.toString() }) cli.on('close', code => { - resolve({ code, stdout, stderr }) + resolve({ code: code || 0, stdout, stderr }); }) }) }