|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/react-testing-library-and-jest/
课程评论:没有评论
**课程名称:** React Testing Library 和 Jest:完整指南 **课程概述:** 本课程是学习如何使用 React Testing Library 和 Jest 测试 React 应用的全面资源。课程将教授经过验证的测试方法,帮助学员理解测试工作原理,并为进入软件工程行业或开发梦想中的应用打下基础。 **课程独特之处:** * 深入讲解顶尖公司在大型 React 应用测试中使用的设计模式。 * 帮助学员编写更小、更易于理解的代码。 * 使学员能够自信地部署代码,确保其行为符合预期。 * 支持独立测试应用的各个部分,减少对用户的影响。 * 使工程团队能够独立工作,并无忧地修改代码库而不会破坏现有功能。 * 以顶尖工程师的输入为基础,确保技术上的准确性。 **学习内容与实践:** * 从小型项目开始,编写基础测试。 * 通过构建交互式备忘单,深入学习 React Testing Library 的各项功能,并作为未来参考。 * 为包含身份验证、数据获取和导航的大型 React 应用添加测试。 **部分主题概览:** * 定制测试环境,编写自定义 Jest 匹配器。 * 调试测试,解决各种 bug。 * 通过模拟数据获取过程,加快测试运行速度。 * 通过大型 React 项目的实践,掌握最佳测试实践。 * 全面了解 React Testing Library 的功能。 * 使用 ARIA Role 系统增强元素选择能力。 * 获得测试身份验证和路由的经验。 * 学习测试快捷方式,编写更高效的测试。 * 理解 React 中至关重要的 `act` 函数。 * 学习在测试环境中处理第三方库的多种方法。 * 使用 Jest 模拟函数和库。 **讲师背景:** 讲师拥有丰富的实践经验,在职业生涯早期专注于不间断地编写测试,并接受顶尖行业工程师的指导。讲师对测试充满热情,并将这份热情传递给学员。
Congratulations! You've found the most popular, most complete, and most up-to-date resource online for learning how to test React apps with React Testing Library and Jest!Thousands of other engineers have learned how to test, and you can too. This course uses a time-tested, battle-proven method to make sure you understand exactly how testing works, and will get you a new job working as a software engineer or help you build that app you've always been dreaming about.The difference between this course and all the others: you will understand the design patterns used by top companies to test the largest React apps around.Testing is used to verify your code works as expected. This provides a set of unique benefits to any frontend:Author smaller, easier to understand codebasesDeploy your code with confidence that it will behave correctlyTest each portion of your app separately - limit the chance of interrupting your usersAllow each of your engineering teams to work independentlyChange your codebase without worrying about breaking an existing featureTesting is a popular topic, but there is a lot of misinformation online. This course has been developed with input from top engineers to ensure total technical accuracy. -----------What will you build?This course focuses on testing components in a variety of different environments. You will begin by writing tests for a small mini-project, just to get some quick initial experience. From there, you'll learn about React Testing Library and all of its functionality by building a series of interactive cheatsheets. You can use these cheatsheets as a future reference to easily remember the intricacies of testing. Finally, you'll add tests to a rather large React app, complete with authentication, data fetching, and navigation.Here's a partial list of some of the topics you'll cover:Customize your test environment by writing custom Jest matchersLearn how to debug your tests by fixing many bugsRun tests faster by implementing a fake data-fetching processUnderstand best practices by working on a large React projectSee an exhaustive list of all the functionality packed into React Testing LibraryEnhance your element-selecting powers by using the ARIA Role systemGet experience testing authentication and routingWrite more efficient tests by learning dozens of testing shortcutsFinally understand the most mysterious function in React - the 'act' function!Learn multiple ways of handling third-party libraries in a test environmentUse Jest to 'mock' functions and librariesI spent the early years of my software engineering career writing tests non-stop. Every single day, I practiced Test Driven Development to write thousands of lines of code while being mentored by top industry engineers. Let me share this knowledge with you. Testing is one of the topics I am most passionate about, and I want you to get as excited as I am. Sign up today and join me!