Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Test Kitchen - A Recipe for Good Tests

React Conferences by GitNation via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore a comprehensive guide to writing effective tests in JavaScript during this 21-minute conference talk from React Summit Remote Edition 2021. Discover the key properties of good tests, including isolation, composability, and determinism, and learn how to implement these principles in practice. Examine the impact of well-written tests on your codebase and developer experience. Gain insights into when and how to run automated tests, strategies for making tests faster, and the importance of testing from a consumer perspective. Walk through practical examples, such as testing a counter component, and learn valuable tips for handling random numbers, extracting business logic, and addressing race conditions. Delve into topics like visual regression testing, creating readable tests, and determining which tests are necessary for your project. By the end of this talk, you'll have a solid foundation for improving your testing practices and creating more robust JavaScript applications.

Syllabus

Introduction
Confidence
Automation
When should automated tests run
When should automated tests not run
How to make tests fast
Test tools
Tests should be behavioral
Test from the consumer perspective
Testing a counter component
Testing behavior
Testing properties
Testing example
Testing tips
Testing random numbers
Extracting business logic
Race conditions
Failures
Specific Tests
Split Test Cases
Reading Tests
Short Tests
Extract Test Functions
Test Library
Visual Regression Tests
Writing Tests
Hacky Tests
Permit
Use the right tool
Predictive
What tests do you need

Taught by

React Conferences by GitNation

Reviews

Start your review of Test Kitchen - A Recipe for Good Tests

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.