MCPcopy
hub / github.com/shelljs/shx / skipIf

Function skipIf

test/specs/cli.js:12–18  ·  view source on GitHub ↗
(cond, ...args)

Source from the content-addressed store, hash-verified

10/* eslint prefer-numeric-literals: "off" */
11
12const skipIf = (cond, ...args) => {
13 if (cond) {
14 it.skip(...args);
15 } else {
16 it(...args);
17 }
18};
19
20// Run the cli with args as argv
21const cli = (...args) => {

Callers 1

cli.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…