Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/cli-testing-library. 🐨 Simple and complete CLI testing utilities that encourage good tes cli-testing.com
Something went wrong. Try again.
---
id: getByError
title: getByError
---
# Function: getByError()
```ts
function getByError<T>(...args): T;
```
Defined in: [queries/error.ts:59](https://github.com/crutchcorn/cli-testing-library/blob/main/packages/cli-testing-library/src/queries/error.ts#L59)
## Type Parameters
### T
`T` *extends* `TestInstance` = `TestInstance`
## Parameters
### args
...\[`TestInstance`, [`Matcher`](../type-aliases/Matcher.md), [`SelectorMatcherOptions`](../interfaces/SelectorMatcherOptions.md)\]
## Returns
`T`