Inflearn brand logo image
Inflearn brand logo image
Inflearn brand logo image
BEST
Programming

/

Front-end

Frontend Testing for Immediate Application - Part 1. Testing Basics: Unit & Integration Tests

Through this lecture, you will learn how to identify the overall types of front-end tests and how to write reliable tests by selecting the appropriate test for the situation.

(4.9) 72 reviews

951 learners

  • hanjungv
단위테스트
통합테스트
프런트엔드
검증
Software Test
JavaScript
React
vitest

Reviews from Early Learners

What you will learn!

  • Key concepts needed for writing tests

  • Frontend testing techniques to increase the reliability of your code

  • How to write unit and integration tests using vitest

  • How to use testing tools such as Testing Library and MSW


🎊 Event 🎊

Get your 30% coupon for Part 1!

📌 Link (77,000 -> 53,600 KRW)

1. How do I use a coupon?You can use your desired coupon by clicking on it in [Cart → Select Coupon → Available Coupons].
2. How do I register a coupon?You can register a coupon by entering your coupon code in [Cart → Select Coupon] or [Dashboard → Coupon Box].

If you've taken Part 1 lectures, get your 50% discount coupon for Part 2!

We are sharing a coupon for those who have completed all Part 1 lectures to purchase Part 2 lectures at a 50% discounted price. Please access the post below and use the coupon before purchasing!

📌 Post Link: Link
⚠️ This post is only visible to Part 1 purchasers.

We provide financial support for course fees to students and job seekers 💪

To make it less burdensome for students or job seekers without income, if you fill out and submit the form, we will provide you with a 50% discount coupon. If the application link is open, you can apply. We support your learning. Keep fighting! 🔥

📌 Application Link: https://forms.gle/ohs7KywvSGXoJXGM7
⚠️ This topic may be a bit challenging for those who are just starting to study FE. Please make sure to check the prerequisites before taking the course!


Are you having these concerns? 🤔

Frontend testing is
what does it verify
I'm curious about that

Manual testing on devices
is too repetitive and exhausting

I'm curious about
real frontend testing that's done
in actual work

Learn various types of frontend testing and write tests using examples close to real-world cases!

  • 🤔 You've become somewhat familiar with building apps, but were you anxious about whether they would actually work well in a production environment?
  • 🤔 You say testing is really necessary, but there are so many different frontend tests that you couldn't muster the courage to start, right?
  • 🤔 Were you insisting on specific test types while wanting to verify and automate more things?
  • 🤔 Did you want to organize what tests to write and clarify the purpose of testing?

If you have these concerns, you've come to the right place!
I recommend "Frontend Testing Applied Directly to Real Work" to you.

The course recommended by working frontend professionals!

"This is a course where you can learn everything from the necessity of test code to various types of testing concepts and how to utilize them. If you're not yet familiar with testing, you can solidly learn the concepts of testing through this course, and if you've previously written test code, you can learn more effective and meaningful test code through the course's examples and exercises to apply in real-world work."

- Kurly Frontend Developer Yoo Kyungsang

"When writing test code, there are moments when you need to convince yourself. 'Won't testing delay the development schedule?' 'Is it right to test this?' 'Should I test content that will be changed later?'"

This course demonstrates various techniques for how strategically you can test even a simple shopping mall site. After watching all the videos, I believe you'll be able to confidently write test code that you can personally understand and trust. I hope many people will watch these videos and gain confidence in testing.

- LINE Plus Frontend Developer Lee Sang-cheol

"This is a lecture that captures the essence based on practical examples, covering everything from why you should write test code to how to write it. Test code is an essential part of building reliable applications, but I think there were always many concerns about what and how to test. It was very helpful as it neatly organized and explained those standards and methods."

- LINE Plus Frontend Developer Kim Eunbin

Through this course, understand the purpose of various frontend tests and create a solid, well-crafted app. 😍


Various frontend tests
The best course to learn all at once 🚀

In this course, we will quickly and easily learn unit, integration, snapshot, visual regression, and E2E testing across Parts 1 and 2 using projects similar to real-world scenarios. You'll understand the advantages and limitations of each test type, clearly grasp the purpose of testing, and develop the capability to build your own workflow.

강의 핵심 Point!

Starting step by step from the important concepts

This explains the necessity of testing and the common testing rules and concepts that should be understood.

Even if there are concepts you're encountering for the first time

We thoroughly examine the purpose of why each tool and API is used, clearly conveying their objectives, and carefully look at the definitions of each test type and methods for selecting targets.

So that you can learn on your own

Provides examples and answers that allow you to write tests directly based on what you've learned, helping you achieve effective test-driven learning.

Similar to actual work

We provide example projects that allow you to easily apply what you've learned in real-world scenarios by writing tests based on shopping mall examples that communicate with actual server environments, helping you learn grammar and tools.


Part 1 consists of a total of five sections
📚

Section 1
Frontend Testing Preparation

  • Let's examine what testing is and explore the benefits of writing test code.
  • We'll examine the rules for writing proper tests when creating frontend tests.
  • I'll introduce the features of the example project that we'll be using going forward.

Section 2
What is Unit Testing?

  • Explains the concept and purpose of unit testing.
  • This explains what should be verified when writing unit tests.
  • Introduces the testing framework Vitest and writes unit tests based on example code.
  • In this process, we'll examine the syntax needed for writing tests, including Matcher and Assertion, it, setup, teardown, and more.
  • We'll explore Testing Library, a tool that helps with component testing.

Section 3
Writing Unit Tests

  • We'll examine the criteria for selecting unit testing targets based on a shopping mall example.
  • Let's explore mocking and mocking initialization methods, and examine how to write independent tests.
  • We'll explore how to write tests for timers that you frequently encounter with React hooks, and examine how to effectively use the act function and React Testing Library along with important considerations.
  • We examine the limitations of unit testing.

Section 4
What is Integration Testing?

  • Explains the concept and purpose of integration testing.
  • We'll examine the criteria for selecting integration test targets based on shopping mall examples.
  • We'll explore methods for mocking state management libraries and API mocking techniques using MSW.
  • We'll examine the criteria for selecting unit testing targets based on shopping mall examples.
  • We'll explore how to utilize React Testing Library's asynchronous utility functions.

Section 5
Integration Testing Writing

  • We'll write integration tests based on a shopping mall example.
  • We'll explore the limitations of integration testing.
  • We'll explore how to automate testing using GitHub Actions.

Related Courses

Frontend Testing Applied Directly to Real Work

Part 2: Advanced Testing - Visual Regression · E2E Testing
Link: https://inf.run/DRRLB


Q&A 💬

Q. Can I take the course regardless of Windows / macOS?

Yes, it's possible. The classes are conducted on macOS using VSCode and browser (Google Chrome) environments.

Q. Where can I get the learning materials?

The course materials are included in the lectures, and please refer to GitHub for example code.

Q. Is there any knowledge I should have before taking the course?

Basic knowledge of JavaScript (ES6) and React is required. Since this course focuses on testing, we provide brief introductions to project development technologies, but you'll need to learn the specific usage methods on your own. We use these technologies at a manageable level, so you can definitely succeed by learning the technologies while following along at your own pace.

Q. Can I take any section I want first, regardless of the order?

This course sequentially explains the concepts of testing, how to write each test, and their limitations, while introducing new testing methods to overcome those limitations. Therefore, we recommend learning sequentially from the earlier sections.

Q. Are Part 1 and Part 2 consecutive lectures?

Yes. The course proceeds with the same example project, and content introduced in Part 1 will not be reintroduced in Part 2. If possible, I recommend studying Part 1 and Part 2 together.

Recommended for
these people

Who is this course right for?

  • For those who want to gain confidence in their code through testing.

  • For those who want to automate repetitive manual verification through testing.

  • For those who have been curious about what frontend testing actually validates

  • For those who want to learn various types of front-end testing at once and build a seamlessly integrated workflow.

Need to know before starting?

  • JavaScript

  • CSS·HTML

  • 리액트

Hello
This is

1,544

Learners

90

Reviews

66

Answers

4.9

Rating

2

Courses

코드 조커

기초부터 완성까지, 프런트엔드(개발부터 테스트까지, 이론과 예제로 배우는 프런트엔드) 저자
12년차 프런트엔드 개발자
(현) 글로벌 컨텐츠 회사 FE 개발 부문 팀장
(전) NHN TOAST Cloud FE 개발 팀장
(전) 삼성 SDS FE 개발자

오프

기초부터 완성까지, 프런트엔드(개발부터 테스트까지, 이론과 예제로 배우는 프런트엔드) 저자
8년차 프런트엔드 개발자
(현) 글로벌 메신저 회사 FE 개발자
(전) NHN TOAST UI 오픈소스 개발자

Curriculum

All

25 lectures ∙ (4hr 42min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

72 reviews

4.9

72 reviews

  • 인프런 도니님의 프로필 이미지
    인프런 도니

    Reviews 3

    Average Rating 5.0

    5

    72% enrolled

    테스트코드 짜야지 짜야지... 생각만 하다가 정말 제대로 해보고 싶어서 강의를 듣게 되었습니다. 강의 내용도 너무 좋았고, 코드들도 제공해주셔서 테스트 코드에만 집중할 수 있어서 좋았습니다. 실무에 적용해봐도 되겠다는 용기가 생겼습니다! 감사합니다 :)

    • 코드 조커, 오프
      Instructor

      좋은 평가 감사합니다!! 적용하시다가 어려운 부분 있으시면 언제든지 편하게 질문 주세요!!

  • Dongja님의 프로필 이미지
    Dongja

    Reviews 2

    Average Rating 5.0

    5

    100% enrolled

    테스트가 무엇인지, 무엇을 테스트할지, 어떻게 테스트 할지에 대해서 많은 분들이 고민을 하고 계실거라고 생각합니다. 이 강의를 들으면 테스트를 처음 접하시는 분들도 쉽게 따라하실 수 있을 것 같습니다. 테스트와 별개로 예제 프로젝트 세팅들을 보면서도 얻어가는 부분들이 있어서 좋았습니다 :) 좋은 강의 만들어주셔서 감사합니다! 2부도 열심히 들을게요~

    • 강의를 잘 활용해주시는 것 같아 좋네요! 나머지 테스트 코드들도 꼭 함께 살펴보시면서 공부해보시면 더 큰 도움이 될 겁니다. 2부까지 꼭 완강하시고 실무에 적용하신 내용 공유해주신 내용도 들려주시면 좋겠네요! 새해 복 많이 받으세요~

  • 프레디님의 프로필 이미지
    프레디

    Reviews 7

    Average Rating 5.0

    5

    56% enrolled

    • 임수현님의 프로필 이미지
      임수현

      Reviews 5

      Average Rating 5.0

      5

      100% enrolled

      실무에 바로 적용할 수 있을만큼 좋은 퀄리티의 예시코드를 통해 배울 수 있어서 너무 좋았습니다!

      • 강의에서 등장하지 않는 코드들도 꼭 함께 살펴보시면서 공부해보시면 더 큰 도움이 될 겁니다. 꼭 완강하시고 실무에 적용하신 내용 공유해주신 내용도 들려주시면 좋겠네요! 새해 복 많이 받으세요~

    • 컴공ㄷㄷ해님의 프로필 이미지
      컴공ㄷㄷ해

      Reviews 2

      Average Rating 5.0

      5

      100% enrolled

      테스트 코드를 작성할 때면 스스로 납득이 필요한 순간이 있습니다. “테스트로 인해 개발 일정이 밀리진 않을까?”, “이것을 테스트하는 게 맞을까?”, “추후 변경될 내용을 테스트해야 할까?” 이 강의는 단순한 쇼핑몰 사이트를 얼마나 전략적으로 테스트할 수 있는지 다양한 기법을 들어 보여주고 있습니다. 영상을 다 보고 나면 스스로 납득 가능한 테스트 코드를 자신감 있게 작성할 수 있을 것으로 생각합니다. 많은 분이 이 영상을 보시고 테스트에 자신감을 얻으셨으면 합니다.

      $59.40

      hanjungv's other courses

      Check out other courses by the instructor!

      Similar courses

      Explore other courses in the same field!