From 06c72c3038bbd0a1ac0d01b6c9fffd0902ed0f80 Mon Sep 17 00:00:00 2001 From: Georgy Marchuk Date: Thu, 24 Feb 2022 09:52:49 +0100 Subject: [PATCH 1/3] Fix invalid and unnecessary .unref call --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ef2fe43..ae61c32 100644 --- a/src/index.ts +++ b/src/index.ts @@ -126,7 +126,7 @@ export const prepareEnvironment = async (): Promise => { }; const wait = (delay: number): Promise => { return new Promise((resolve) => { - setTimeout(resolve, delay).unref(); + setTimeout(resolve, delay); }); }; const waitForFinish = async (): Promise => { From 1cc1e1424c88d48d5420279c5a6edbc976a1e961 Mon Sep 17 00:00:00 2001 From: Georgy Marchuk Date: Thu, 24 Feb 2022 10:00:15 +0100 Subject: [PATCH 2/3] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 21e6540..7df325f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gmrchk/cli-testing-library", - "version": "0.1.0", + "version": "0.1.1", "description": "Small but powerful library for testing CLI the way it is used by people.", "main": "lib/index.js", "types": "lib/index.d.ts", From 0b6f7c86544e3f7565d7f85f5f59275571c14aec Mon Sep 17 00:00:00 2001 From: Georgy Marchuk Date: Thu, 24 Feb 2022 10:00:33 +0100 Subject: [PATCH 3/3] Update package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 4ab1076..4ca0142 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@gmrchk/cli-testing-library", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 1, "requires": true, "dependencies": {