Skip to content

Interface ErrorMatcher ​

Source: test.ts

Defines the matching criteria for a test case that expects the function to throw an error.

See ​

Properties ​

[MATCH_ERROR] ​

readonly [MATCH_ERROR]: true


error ​

readonly error: (...args: never[]) => Error

The type of error the function should throw.

Parameters ​

args ​

...never[]

Returns ​

Error


message? ​

readonly optional message?: string | RegExp

The message the error thrown by the function should have.

Built by Prozilla