---
title: "Discussion on \"How to test the Error cause with Jest and TypeScript\" | Hashnode"
description: "Discussion on \"How to test the Error cause with Jest and TypeScript\". Extending Jest in TypeScript to write custom matchers for testing additional Error properties."
url: "https://hashnode.com/posts/how-to-test-the-error-cause-with-jest-and-typescript/63e575a802bd3c2368e5022a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to test the Error cause with Jest and TypeScript](https://blog.itsjavi.com/how-to-test-the-error-cause-with-jest-and-typescript?utm_source=hashnode&utm_medium=feed)

Extending Jest in TypeScript to write custom matchers for testing additional Error properties.

Feb 9, 2023 · 3 min read · blog.itsjavi.com  
Read the article

-   [#jest](https://hashnode.com/tag/jest)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#testing](https://hashnode.com/tag/testing)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Javier Aguilar](https://hashnode.com/@itsjavi)

@itsjavi · Berlin, DE

  
[View profile](https://hashnode.com/@itsjavi)

Senior Full-Stack Software Engineer

Senior Full Stack Developer in the ☁️ Creator of supereffective.gg, a Pokémon community running on Next.js and @vercel

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
