Page Contents
Home > @loopback/testlab > skipOnTravis
skipOnTravis() function
Helper function for skipping tests on Travis CI.
Signature:
export declare function skipOnTravis<ARGS extends unknown[], RETVAL>(verb: TestDefinition<ARGS, RETVAL> & {
skip: TestDefinition<ARGS, RETVAL>;
}, name: string, ...args: ARGS): RETVAL;
Parameters
Parameter | Type | Description |
---|---|---|
verb | TestDefinition<ARGS, RETVAL> & { skip: TestDefinition<ARGS, RETVAL>; } | The function to invoke to define the test case or the test suite, e.g. it or describe . |
name | string | The test name (the first argument of verb function). |
args | ARGS | Additional arguments (framework specific), typically a function implementing the test. |
Returns:
RETVAL
Example
skipOnTravis(it, 'does something when some condition', async () => {
// the test
});