- Lucas' Newsletter
- Posts
- Daily Dispatch 28 - Jesting
Daily Dispatch 28 - Jesting
![](https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/74590068-5437-4f44-8a6c-bf98033be856/pexels-photo-239548.jpeg?t=1722263353)
Hey it’s me again, so I’ve been learning how to work with Jest, one testing library used by some React projects.
Here are my thoughts:
Compared to other testing libraries like JUnit or Kotlin’s test, I saw it as a bit less organized.
I still don’t know why exactly I felt that way.
Some errors:
mockImplementationOnce is not a functionJest at:
How I solved it:
I forgot to add at the top of the file this linetypescript jest.mock('../services/prismic')
To tell the code that my functions at prismic would be called as mocks.
That is it for today.