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:

Actix Web Adoption Guide: Overview, Examples, And Alternatives

Actix Web adoption guide: Overview, examples, and alternatives

Actix Web is definitely a compelling option to consider, whether you are starting a new project or considering a framework switch.

Eze Sunday
Mar 18, 2024 ⋅ 8 min read
Getting Started With NativeWind: Tailwind For React Native

Getting started with NativeWind: Tailwind for React Native

Explore the integration of Tailwind CSS with React Native through NativeWind for responsive mobile design.

Chinwike Maduabuchi
Mar 15, 2024 ⋅ 11 min read
Developing A Cross Platform Tv App With React Native

Developing a cross-platform TV app with React Native

The react-tv-space-navigation library offers a comprehensive solution for developing a cross-platform TV app with React Native.

Emmanuel Odioko
Mar 14, 2024 ⋅ 10 min read
Essential Tools For Implementing React Panel Layouts

Essential tools for implementing React panel layouts

Explore some of the best tools in the React ecosystem for creating dynamic panel layouts, including react-resizable-layout and react-resizable-panels.

David Omotayo
Mar 13, 2024 ⋅ 8 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