Introduction to Unit Testing in Jest - The Fundamentals

5.0
6 个评分
提供方
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

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心