@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
108 lines (56 loc) • 1.84 kB
Markdown
---
lang: en
title: 'API docs: testlab.skipontravis'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/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.
**Signature:**
```typescript
export declare function skipOnTravis<ARGS extends unknown[], RETVAL>(verb: TestDefinition<ARGS, RETVAL> & {
skip: TestDefinition<ARGS, RETVAL>;
}, name: string, ...args: ARGS): RETVAL;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
verb
</td><td markdown="1">
[TestDefinition](./testlab.testdefinition.md)<!-- --><ARGS, RETVAL> & { skip: [TestDefinition](./testlab.testdefinition.md)<!-- --><ARGS, RETVAL>; }
</td><td markdown="1">
The function to invoke to define the test case or the test suite, e.g. `it` or `describe`<!-- -->.
</td></tr>
<tr><td markdown="1">
name
</td><td markdown="1">
string
</td><td markdown="1">
The test name (the first argument of `verb` function).
</td></tr>
<tr><td markdown="1">
args
</td><td markdown="1">
ARGS
</td><td markdown="1">
Additional arguments (framework specific), typically a function implementing the test.
</td></tr>
</tbody></table>
**Returns:**
RETVAL
## Example
```ts
skipOnTravis(it, 'does something when some condition', async () => {
// the test
});
```