강의

멘토링

로드맵

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) 27 reviews

621 learners

  • zerocho
실습 중심
Software Test
Jest
react-testing-library
SuperTest
unittest

Reviews from Early Learners

What you will learn!

  • How to use Jest

  • How to write test code

  • Precautions during testing

  • Unit testing, integration testing

  • Snapshot test

Wondering whether you should automate testing your code? 🤔

With so much work to do, you're probably wondering whether you should set aside time to write software tests. You've likely seen online posts like "You absolutely must test" and "You should implement TDD (Test-Driven Development)," further deepening your concerns.

In this lecture, we'll first explain whether testing is necessary in your current situation and then demonstrate the benefits of testing through code. This isn't a lecture that forces you to test. If you feel the need for testing yourself after watching the lecture, try implementing the tests you learned in the lecture!

Features of this course

📌 This lecture isn't written from the perspective of insisting on testing. I hope you'll feel the need to test yourself while watching the lecture.

📌 Rather than simply introducing the testing tool APIs, we'll introduce the mindset and best practices for testing. Among the numerous Jest APIs, we'll focus on the ones most frequently used in practice.

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

📌 This course assumes basic JavaScript knowledge. Rather than a tutorial, this is a hands-on course where you'll learn about various mocking techniques and feel the need for them through observing me conducting tests.

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 the tests are correct or efficient.

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 with the Visual Studio Code Jest plugin!

Achieving 100% test coverage isn't difficult (just tedious... 😊😊)

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

No more tests that fail after running them twice! Snapshot testing (aka stuffed animals) solves the problem!

Things to note before taking the course

Practice environment

  • Windows 11

  • node.js 22

  • Jest 29

  • The practice environment doesn't really matter.

Learning Materials

Player Knowledge and Precautions

  • Basic JavaScript syntax

  • 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.

  • If you get stuck while testing, please ask a question 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

65,687

Learners

1,619

Reviews

9,707

Answers

4.8

Rating

22

Courses

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

One of the key strengths of my courses is the Q&A support. (Winner of the Inflearn Q&A King award twice) I respond to your questions within 24 hours, doing my best to help you out! You’ll feel like we’re solving the problems together.

👉ZeroCho Lectures
제로초 강의 전체 로드맵. A complete roadmap of all my courses is available here.

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

  • Author of Node.js Textbook, Self-Guided JavaScript by ZeroCho, Let's Get IT JavaScript, and TypeScript Textbook

  • Operator of ZeroCho.com

  • Currently running a YouTube channel ZeroCho TV, covering development topics

  • CTO at SmoreTalk

  • Former CTO at Today Pickup (acquired by Kakao Mobility, where I became the youngest lead developer)

Curriculum

All

53 lectures ∙ (5hr 57min)

Published: 
Last updated: 

Reviews

All

27 reviews

5.0

27 reviews

  • ryuwoong님의 프로필 이미지
    ryuwoong

    Reviews 4

    Average Rating 5.0

    5

    51% enrolled

    I tried to introduce tests using Jest, but unlike the library description, there were many more difficult points than I thought. I really like this lecture because it explains only the basics and the core without any unnecessary details. I highly recommend it to anyone who wants to learn Jest from scratch! 👍

    • apk님의 프로필 이미지
      apk

      Reviews 10

      Average Rating 5.0

      5

      60% enrolled

      As a top-tier instructor in the JavaScript field, Zerocho's lectures are like taking a healthy medicine like ginseng, as he easily and accurately explains the basics/importance/practice of Jest that you shouldn't miss.

      • stronghu956460님의 프로필 이미지
        stronghu956460

        Reviews 3

        Average Rating 5.0

        5

        83% enrolled

        For those who are new to testing or have only heard of Jest but have never used it, this might be the best course. It is structured so that you can use Jest for everything from small unit tests to large integrated tests, so that you can apply it in practice. Also, any questions or concerns that you may have while using JEST are already answered in the lecture in a self-answer format, so you don't have to ask. Lastly, the curriculum list is intuitive. You don't get everything from listening to the lecture once; you have to listen to it two or three times, and this curriculum list helps us solve our questions and concerns right away. This alone is good because it takes a big step forward in solving them.

        • testtestetst님의 프로필 이미지
          testtestetst

          Reviews 2

          Average Rating 5.0

          5

          49% enrolled

          It seems like a good lecture to learn and apply quickly because it explains only the really necessary parts concisely. The editing is also clean and good. It goes beyond simply explaining the concepts and also talks a lot about experiences, so you can get a lot of helpful content.

          • myeonguk님의 프로필 이미지
            myeonguk

            Reviews 2

            Average Rating 5.0

            5

            100% enrolled

            Writing test code for project code has allowed me to understand the necessity of writing test code and the syntax related to Jest! Thank you for the great lecture! :)

            $34.10

            zerocho's other courses

            Check out other courses by the instructor!

            Similar courses

            Explore other courses in the same field!