@loopback/docs
Version:
Documentation for LoopBack 4
49 lines (32 loc) • 1.48 kB
Markdown
---
lang: en
title: 'API docs: testlab.skipontravis'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/testlab
permalink: /doc/en/lb4/apidocs.testlab.skipontravis.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/testlab](./testlab.md) > [skipOnTravis](./testlab.skipontravis.md)
## skipOnTravis() function
Helper function for skipping tests on Travis CI.
<b>Signature:</b>
```typescript
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 | <code>TestDefinition<ARGS, RETVAL> & {</code><br/><code> skip: TestDefinition<ARGS, RETVAL>;</code><br/><code>}</code> | The function to invoke to define the test case or the test suite, e.g. <code>it</code> or <code>describe</code>. |
| name | <code>string</code> | The test name (the first argument of <code>verb</code> function). |
| args | <code>ARGS</code> | Additional arguments (framework specific), typically a function implementing the test. |
<b>Returns:</b>
`RETVAL`
## Example
```ts
skipOnTravis(it, 'does something when some condition', async () => {
// the test
});
```