MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / skipOnTravis

Function skipOnTravis

packages/testlab/src/skip.ts:66–76  ·  view source on GitHub ↗
(
  verb: TestDefinition<ARGS, RETVAL> & {skip: TestDefinition<ARGS, RETVAL>},
  name: string,
  ...args: ARGS
)

Source from the content-addressed store, hash-verified

64 * implementing the test.
65 */
66export function skipOnTravis<ARGS extends unknown[], RETVAL>(
67 verb: TestDefinition<ARGS, RETVAL> & {skip: TestDefinition<ARGS, RETVAL>},
68 name: string,
69 ...args: ARGS
70): RETVAL {
71 if (process.env.TRAVIS) {
72 return verb.skip(`[SKIPPED ON TRAVIS] ${name}`, ...args);
73 } else {
74 return verb(name, ...args);
75 }
76}

Calls 1

skipMethod · 0.80

Tested by

no test coverage detected