Skip to content

Commit

Permalink
ignore coverage report for clack.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Jun 20, 2024
1 parent e32fe34 commit dca0fc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface ClackEffects {
isCancel: Clack["isCancel"];
}

/* c8 ignore start */
function noTty(clack: ClackEffects): ClackEffects {
return {
...clack,
Expand All @@ -32,5 +33,6 @@ function noTty(clack: ClackEffects): ClackEffects {
})
};
}
/* c8 ignore end */

export default process.stdout.isTTY ? clackO : noTty(clackO);

0 comments on commit dca0fc7

Please sign in to comment.