Introduction to Unit Testing in Jest - The Fundamentals

4.8
20 個評分
提供方
Coursera Project Network
在此指導項目中,您將:

Learn the anatomy of a unit test in Jest

Write unit tests in Jest on real code

Clock2 hours
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this 1-hour long project-based course on Introduction to Unit testing In Jest, we will get to explore the anatomy of a Jest unit test, and begin writing code and subsequently, the tests for that code using the Jest framework. By following this course, we will demystify unit tests and understand how we can use them to write better code. we will get practise across the general landscape of the Jest framework to and see how we can use the cool tools provided to us by the awesome Jest developers We will learn all about the syntax of a test, general rules, common matchers, and then start working with testing in asynchronous code and API fetching and then move on to mocking. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培養的技能

Unit TestingJest

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Task 1: Why do we write tests? Let’s write our first test to find out

  2. Task 2: Start using matchers in our tests to understand how a test works

  3. Task 3: Matchers deep dive #1

  4. Task 4: Matchers deep dive #2

  5. Task 5: Practice writing tests for asynchronous code and API calls

  6. Task 6: Using mocks in our tests

  7. Task 7: Using setup and teardown code in our tests

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心