DEV Community

Cover image for A Guide To Writing Awesome Unit Tests For The First Time

A Guide To Writing Awesome Unit Tests For The First Time

Nihar Raote on August 14, 2018

Introduction: This is a tutorial meant to get you started with testing, in particular, unit testing. In this tutorial, we will learn how...
Collapse
 
djdany01 profile image
Dani J. Pérez

Hey good post!

I'm working with Vue since 6 months ago and doing a lot of tests with karma, mocha-chai and jasmine.
Jest is just awesome, more graphic and helpfully than karma.
I'll give it a try.

Thanks!

Collapse
 
napoleon039 profile image
Nihar Raote

I'm glad I could help. Jest is great and the tests feel intuitive.

I'm thinking of learning Mocha and Cypress next. Any good resources for getting started with Mocha?

Collapse
 
djdany01 profile image
Dani J. Pérez

Hey!
I used mocha-chai that is more intuitive than only mocha.
Everithing i have learned was in the official docs: chaijs.com/guide/
I'm thinking of doing a post about testing with this.

Thank you!

Thread Thread
 
napoleon039 profile image
Nihar Raote • Edited

Alright, I'll try mocha-chai. I'm excited to learn it! You should definitely write a post about this. It deepens your understanding and helps others at the same time. 😃