Posts tagged as Testing
#Testing
![Cover for post Vue.js Testing Made it Easy (with Testing Library)](/_astro/cover.FA1DSgeP_LJGrw.jpg)
Vue.js Testing Made it Easy (with Testing Library)
How Testing Library helps you to write better integration test
![Cover for post How to mock Axios HTTP calls with Jest](/_astro/cover.CopYYTi0_10hfId.jpg)
How to mock Axios HTTP calls with Jest
How to unit test components that have HTTP calls.
![Cover for post Why you shouldn't pay too much attention to your code coverage](/_astro/cover.C3kef_5h_Z2nQjur.jpg)
Why you shouldn't pay too much attention to your code coverage
High code coverage doesn't guarantee quality: You can write tests that cover every line but miss edge cases or core functionality.
![Cover for post 10 Tips for Writing Better Tests](/_astro/cover.ykLyNvC6_Z1STGxj.jpg)
10 Tips for Writing Better Tests
1. Think documentation 2. Isolate your tests 3. Keep it flat 4.Only mock what you can't control 5. Avoid assertion in loops (forEach/...) 6...
![Cover for post How to mock Date with Jest](/_astro/cover.Dx3yXTs7_1wH6Qw.jpg)
How to mock Date with Jest
A guide on how to deal with unit tests that uses the JavaScript Date object.