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": { 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", 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 => {