인프런 영문 브랜드 로고
인프런 영문 브랜드 로고
BEST
Programming

/

Software Test

Test with Jest: Learn Properly from Zerocho

In this lecture, we will show you when testing is necessary and the advantages of testing using the Jest framework. We will apply unit testing and integration testing to React, Express, etc.

(5.0) 12 reviews

387 students

Software Test
Jest
react-testing-library
SuperTest
unittest
Thumbnail

This course is prepared for Basic Learners.

What you will learn!

  • How to use Jest

  • How to write test code

  • Precautions during testing

  • Unit testing, integration testing

  • Snapshot test

Are you wondering whether you should automate testing your code? 🤔

You may be worried about whether you should set aside time to write software tests when you are busy with a lot of work. You may be worried because you often see articles on the Internet saying, “You must do tests” or “You must do TDD (Test-Driven Development).”

In this lecture, we will first tell you whether testing is necessary in the current situation, and show you the advantages of testing through code. This is not a lecture that forces you to "test!". After watching the lecture, if you feel the need for it yourself, try applying the testing you learned in the lecture!

Features of this course

📌 This lecture was not taken from the perspective that you absolutely must take the test. I hope you will watch the lecture and feel whether or not you need to take the test.

📌 Rather than simply introducing the test tool API, we will introduce what kind of mindset you should have when testing and how to do tests well. Among the many Jest APIs, we will explain the ones that are frequently used in practice.

📌 This is not a TDD course. This course teaches you how to add unit tests and integration tests to existing React or Express code. The goal is 100% test coverage.

📌 It is assumed that you have basic knowledge of JavaScript. Rather than a follow-along course, this is a lecture where you can feel the necessity by watching me conduct tests and learn about various mocking techniques.

I recommend this to these people

I'm wondering if I should take the test.

I've heard that testing is good, but I'm a developer who's wondering if it's worth setting aside time to do it.

Where should I start testing?

Developers who need to write test code by necessity or by company direction but are at a loss as to where to start

What is effective testing?

Developers who are writing tests but are worried about whether they are good tests or efficient tests

After class

  • You will be able to set up Jest in your existing project (React, Express).

  • You will be able to write unit tests and integration tests for existing projects (React, Express).

  • With just a little bit of(?) effort, you can achieve 100% test coverage.

  • This will help you decide which parts to mock.

Learn about these things

Testing tutorial with Visual Studio Code Jest plugin!

Achieving 100% test coverage isn't hard (just boring... haha)

Learn about unit testing, integration testing, and E2E testing.

No more failing tests when run twice! Snapshot testing (aka. taxidermy) solves the problem!

Things to note before taking the class

Practice environment

  • windows 11

  • node.js 22

  • Jest 29

  • The practice environment doesn't really matter.

Learning Materials

Player Knowledge and Notes

  • Basic JavaScript Grammar

  • Front-end experience such as React or back-end experience such as Express or Nest.js

  • Rather than just following along, try to apply what you learned from the lectures to your own code and test it.

  • If you have any questions while testing, please ask along with the source code and we will think about it together.

Recommended for
these people!

Who is this course right for?

  • For those who want to try the test but don't know how to start

  • Anyone who feels the need for testing because bugs keep recurring

  • For those who are wondering if testing increases development productivity

  • Anyone who wants to write effective tests

Need to know before starting?

  • JavaScript

  • TypeScript (no need to be proficient)

  • npm

Hello
This is zerocho

Students

60,866

Reviews

1,414

Rating

4.8

Courses

21

제 강의의 장점은 Q&A입니다(인프런 답변왕 2회 수상). 24시간 이내에 최대한 답변드립니다! 같이 고민한다는 느낌으로 답변 드릴게요!

https://www.zerocho.com/lecture

제로초 강의 전체 로드맵

 

– Node.js교과서, 코딩자율학습 제로초의 자바스크립트, Let's Get IT 자바스크립트, 타입스크립트 교과서 저자 
– ZeroCho.com 운영자
– 현) 유튜브에서 ZeroCho TV로 개발 관련 방송중 
– 현) 스모어톡 CTO 
– 전) 오늘의픽업 CTO(카카오모빌리티에 엑싯 후 카카오모빌리티 최연소 개발파트장)

Curriculum

All

53 lectures ∙ (5hr 57min)

Published: 
Last updated: 

Reviews

Not enough reviews.
Become the author of a review that helps everyone!