From bd3aac78e590863e128a80dbc880bec88968a82d Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Fri, 29 Mar 2024 12:10:30 +0200 Subject: [PATCH] fix: Coverage ignore notifier code --- src/cli.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.ts b/src/cli.ts index 3df950df5..83bef40d1 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -20,6 +20,7 @@ export default async function () { process.env.NODE_ENV === "test" || process.argv.includes(NO_UPDATE_NOTIFIER); + /* istanbul ignore if */ if (!disableUpdateNotifier) { const {default: updateNotifier} = await import("update-notifier"); updateNotifier({ @@ -30,6 +31,7 @@ export default async function () { } // Remove --no-update-notifier from argv as it's not known to yargs, but we still want to support using it + /* istanbul ignore if */ if (process.argv.includes(NO_UPDATE_NOTIFIER)) { process.argv = process.argv.filter((v) => v !== NO_UPDATE_NOTIFIER); }