Daily Dispatch 28 - Jesting

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.