Using the wrong query functions can cause unexpected testing behaviors, and the Jest documentations doesn't make it clear on when to use each type of query functions. Until you try and test a lot yourself, you'll start to wrap your head around it. So, in this video I will show you when to use what. There are 3 types of query functions: getBy, queryBy or findBy.
- Github repo for this video and all the testing series:
github.com/mmaksi/nextjs-test...
- Follow me on X:
/ mmxi47
31 янв 2024