---
lang: en
title: 'API docs: testlab.testdefinition'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.testlab.testdefinition.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/testlab](./testlab.md) &gt; [TestDefinition](./testlab.testdefinition.md)

## TestDefinition type

A function defining a new test case or a test suite, e.g. `it` or `describe`<!-- -->.

<b>Signature:</b>

```typescript
export declare type TestDefinition<ARGS extends unknown[], RETVAL> = (name: string, ...args: ARGS) => RETVAL;
```

