Urara-Blog/node_modules/.pnpm-store/v3/files/f8/4c3ce68157f42c67bf526feb1491dd19012a622e14daa8a91622b6a718ad06b1d9a865b8e5abd876aea795a8a59a622f8d98677622428be14a5cced7c0a2cd
2022-08-14 01:14:53 +08:00

12 lines
595 B
Text

# MockErrors
Undici exposes a variety of mock error objects that you can use to enhance your mock error handling.
You can find all the mock error objects inside the `mockErrors` key.
```js
import { mockErrors } from 'undici'
```
| Mock Error | Mock Error Codes | Description |
| --------------------- | ------------------------------- | ---------------------------------------------------------- |
| `MockNotMatchedError` | `UND_MOCK_ERR_MOCK_NOT_MATCHED` | The request does not match any registered mock dispatches. |