Skip to content

Commit

Permalink
fix: Coverage ignore notifier code
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Mar 29, 2024
1 parent a482a91 commit bd3aac7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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);
}
Expand Down

0 comments on commit bd3aac7

Please sign in to comment.