Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

'(error?: string | RegExp | Constructable | Error | undefined): void' is deprecated.ts(6385) index.d.ts(1140, 12): The declaration was marked as deprecated here. (method) jest.Matchers<void, () => void>.toThrowError(error?: string | RegExp | jest.Constructable | Error | undefined): void If you want to test that a specific error is thrown inside a function. @deprecated — in favor of toThrow #1425

dil-mezzy started this conversation in General
Discussion options

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant