---
title: "Discussion on \"How to mock TypeScript interfaces with Jest\" | Hashnode"
description: "Discussion on \"How to mock TypeScript interfaces with Jest\". Last week I was creating a NodeJS + ExpressJS app in TypeScript and I was wondering how to apply the  Onion Architecture successfully. In practice that was not a problem (I will write an article about it soon) until the moment of testing.\nThere is li..."
url: "https://hashnode.com/posts/how-to-mock-typescript-interfaces-with-jest/607b301eeb2bd30d2d2263c6"
---

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

Discussion

# [How to mock TypeScript interfaces with Jest](https://blog.itsjavi.com/how-to-mock-typescript-interfaces-with-jest?utm_source=hashnode&utm_medium=feed)

Last week I was creating a NodeJS + ExpressJS app in TypeScript and I was wondering how to apply the Onion Architecture successfully. In practice that was not a problem (I will write an article about it soon) until the moment of testing. There is li...

Apr 17, 2021 · 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)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)

## 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.
