2020-05-19
3466
#jest#js libraries#nestjs
Maciej Cieślar
18691
May 19, 2020 ⋅ 12 min read

Unit testing NestJS applications with Jest

Maciej Cieślar A JavaScript developer and a blogger at mcieslar.com.

Recent posts:

Comparing Mutative Vs Immer Vs Reducers For Data Handling In React

Comparing React state tools: Mutative vs. Immer vs. reducers

Mutative processes data with better performance than both Immer and native reducers. Let’s compare these data handling options in React.

Rashedul Alam
Apr 26, 2024 ⋅ 7 min read
Radix Ui Adoption Guide Overview Examples And Alternatives

Radix UI adoption guide: Overview, examples, and alternatives

Radix UI is quickly rising in popularity and has become an excellent go-to solution for building modern design systems and websites.

Nefe Emadamerho-Atori
Apr 25, 2024 ⋅ 11 min read
Understanding The Css Revert Layer Keyword, Part Of Css Cascade Layers

Understanding the CSS revert-layer keyword

In this article, we’ll explore CSS cascade layers — and, specifically, the revert-layer keyword — to help you refine your styling strategy.

Chimezie Innocent
Apr 24, 2024 ⋅ 6 min read
Exploring Nushell, A Rust Powered, Cross Platform Shell

Exploring Nushell, a Rust-powered, cross-platform shell

Nushell is a modern, performant, extensible shell built with Rust. Explore its pros, cons, and how to install and get started with it.

Oduah Chigozie
Apr 23, 2024 ⋅ 6 min read
View all posts

6 Replies to "Unit testing NestJS applications with Jest"

  1. I don’t seem to have the .of method on my entity class. I see you use Playlist.of to create an object to test against. What am I missing?

  2. About the Playlist.of method yet, lets say we extend Playlist from a BaseEntity, could we implement it there? If so, how would we deal with the types? Thanks

  3. This is a great article and would have been better if there was a sample Github repository to see all the code examples at once.

  4. This is a great article to know the concept of testing, and how to do it with the nest.
    It helps me a lot to do testing.
    Thank you so much for sharing your knowledge.

Leave a Reply