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:

Rxjs Adoption Guide: Overview, Examples, And Alternatives

RxJS adoption guide: Overview, examples, and alternatives

Get to know RxJS features, benefits, and more to help you understand what it is, how it works, and why you should use it.

Emmanuel Odioko
Jul 26, 2024 ⋅ 13 min read
Decoupling Monoliths Into Microservices With Feature Flags

Decoupling monoliths into microservices with feature flags

Explore how to effectively break down a monolithic application into microservices using feature flags and Flagsmith.

Kayode Adeniyi
Jul 25, 2024 ⋅ 10 min read
Lots of multi-colored blue and purplish rectangles.

Animating dialog and popover elements with CSS @starting-style

Native dialog and popover elements have their own well-defined roles in modern-day frontend web development. Dialog elements are known to […]

Rahul Chhodde
Jul 24, 2024 ⋅ 10 min read
Using Llama Index To Add Personal Data To Large Language Models

Using LlamaIndex to add personal data to LLMs

LlamaIndex provides tools for ingesting, processing, and implementing complex query workflows that combine data access with LLM prompting.

Ukeje Goodness
Jul 23, 2024 ⋅ 5 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