Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit dd5b7dd

Browse files
authored
chore(test): ignore untestable code
1 parent bdb1c69 commit dd5b7dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,12 @@ export function getSupportedEnvironmentInfo() {
296296
};
297297
}
298298

299+
/* c8 ignore start */
299300
/**
300301
* Detects if the logic is being currently executed inside a `tap` test.
301302
*/
302303
export function amICurrentlyBeingTestedByTap() {
303304
// REFER: https://node-tap.org/environment/#environment-variables-used-by-tap
304305
return Object.prototype.hasOwnProperty.call(process.env, 'TAP_CHILD_ID');
305306
}
307+
/* c8 ignore stop */

0 commit comments

Comments
 (0)