Inflearn brand logo image
Inflearn brand logo image
Inflearn brand logo image
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) 25 reviews

605 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,297

Learners

1,590

Reviews

9,690

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

25 reviews

5.0

25 reviews

  • ryuwoong님의 프로필 이미지
    ryuwoong

    Reviews 4

    Average Rating 5.0

    5

    51% enrolled

    Jestを活用してテスト導入を試みてみましたが、ライブラリの説明と違って思ったより難しい点がかなり存在しました。

    • apk님의 프로필 이미지
      apk

      Reviews 10

      Average Rating 5.0

      5

      60% enrolled

      JavaScript部門1層講師らしくjest部分の基礎/重要/実践まで逃してはいけない部分を簡単かつ正確に知らせるゼロチョサム講義は山参と同じ健康な薬剤を食べるようです。

      • stronghu956460님의 프로필 이미지
        stronghu956460

        Reviews 3

        Average Rating 5.0

        5

        83% enrolled

        テストを始める方やJestを言葉だけ聞いたのか、使用はしなかった方には最高の講義ではないかと思います。 Jestを使って小さなユニットのテストから大きな統合テストまで、使いこなせるように実務で適用できるように構成されています。 また、JESTを使用しながら起こり得る疑問や質問事項は、すでに講義内にセルフ(?)回答式になっており、聞いてみなくても答えが出ています。 最後に、カリキュラムのリストは直感的です。講義は一度聞くと全くなるのではなく、2回3回聞く必要がありますが、その時、このカリキュラムのリストが私たちの疑問、気になることをすぐに解決するのに役立ちます。 これだけで解決するにあたって大きなスタッフを一歩進めてもらっていいです。

        • testtestetst님의 프로필 이미지
          testtestetst

          Reviews 2

          Average Rating 5.0

          5

          49% enrolled

          本当に必要な部分だけを簡潔に説明してくださって素早く学習して適用してみる良い講義のようです。編集もスッキリしていいですね。 単に概念だけを説明する以上に、経験に基づく話もたくさんしてくださり、役に立つ内容をたくさん得ることができます。

          • myeonguk님의 프로필 이미지
            myeonguk

            Reviews 2

            Average Rating 5.0

            5

            100% enrolled

            プロジェクトのコードにテストコードを書きながら、テストコード作成の妥当性とjest関連の文法について知ることができました!良い講義をありがとうございます!:)

            $34.10

            zerocho's other courses

            Check out other courses by the instructor!

            Similar courses

            Explore other courses in the same field!