BEST

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

542 students

Software Test
Jest
react-testing-library
SuperTest
unittest

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

63,930

Students

1,530

Reviews

9,609

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)

More

Curriculum

All

53 lectures ∙ (5hr 57min)

Published: 
Last updated: 

Reviews

All

22 reviews

5.0

22 reviews

  • Cliche

    Reviews 3

    Average Rating 5.0

    5

    83% enrolled

    테스트를 처음 하시는 분들이나 Jest를 말로만 들어봤지 사용은 안해보신 분들에게는 최고의 강의가 아닐까합니다. Jest를 사용하여 작은 단위 의 테스트 부터 큰 통합테스트까지 두루두루 사용할수있도록 실무에서 적용이 가능할정도로 구성이 되어있습니다. 또한 JEST를 사용하면서 생길수있는 궁금증이나 질문사항들은 이미 강의내에 셀프(?) 답변식으로 되어있어서 물어보지 않아도 답이 다 나와있습니다. 마지막으로 커리큘럼 목록이 직관적입니다. 강의는 한번 듣는다고 다 되는게 아니라 두번 세번 들어야 하는데 그때 이 커리큘럼 목록이 우리들의 의문, 궁금증을 바로 해결할 수 있도록 도와줍니다 이것만으로 해결함에 있어서 큰 스탭을 한발 나아가게 해줘서 좋습니다.

    • Leo

      Reviews 2

      Average Rating 5.0

      5

      49% enrolled

      정말 필요한 부분만 간결하게 설명해주셔서 빠르게 학습하고 적용해보기 좋은 강의인 것 같습니다. 편집도 깔끔해서 좋네요. 단순히 개념만 설명하는 것 이상으로 경험에 근거한 얘기도 많이 해주셔서 도움되는 내용들을 많이 얻을 수 있습니다.

      • 김형

        Reviews 10

        Average Rating 5.0

        5

        60% enrolled

        자바스크립트 부문 1티어 강사답게 jest 부분의 기초 / 중요 / 실전 까지 놓치지 말아야할 부분을 쉽고 정확하게 알려주는 제로초쌤 강의는 산삼과도 같은 건강한 약재를 먹는듯 합니다.

        • RyuWoong

          Reviews 3

          Average Rating 5.0

          5

          51% enrolled

          Jest를 활용하여 테스트 도입을 시도해봤지만, 라이브러리 설명과 다르게 생각보다 어려운 점이 꽤 존재했어요. 이 강의는 기초부터 핵심만 군더더기 없이 설명해줘서 너무 좋아요. Jest를 처음부터 익히고 싶은 분이라면 완전 추천합니다! 👍

          • 이명욱

            Reviews 2

            Average Rating 5.0

            5

            100% enrolled

            프로젝트 코드에 테스트 코드를 작성해가며 테스트 코드 작성의 당위성과 jest 관련 문법에 대해 알 수 있었습니다! 좋은 강의 감사합니다! :)

            zerocho's other courses

            Check out other courses by the instructor!

            Similar courses

            Explore other courses in the same field!

            $34.10