Philipp Horstenkamp aa9afe998d
All checks were successful
Try out action / Try action (push) Successful in 22s
Lint / pre-commit Lint (push) Successful in 41s
Initiated the action. (#1)
Reviewed-on: #1
Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
2024-05-28 23:29:17 +02:00

595 B

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.

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.