mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-27 19:00:42 -04:00
fix(curriculum): Update testing differences video id (#60620)
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
id: 67db31c7ed46f430ce6c2da6
|
||||
title: What Are the Differences Between Mocking, Faking, and Stubbing?
|
||||
challengeType: 11
|
||||
videoId: T0wWrRxHLSc
|
||||
videoId: qUrNunLbee4
|
||||
dashedName: what-are-the-differences-between-mocking-faking-and-stubbing
|
||||
---
|
||||
|
||||
@@ -14,8 +14,6 @@ Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
What are the differences between mocking, faking, and stubbing?
|
||||
|
||||
In a prior lecture video, we briefly discussed what mocking is in testing. But in this video, we will dive a little bit deeper into mocking, faking and stubbing.
|
||||
|
||||
Mocking is the process of replacing real data with false data that simulates the behavior of real components. This allows testers and developers to test for specific components in the application without having to rely on external dependencies.
|
||||
|
||||
A common use case for mocking data would be when dealing with API calls. Imagine you have a fetch call like this in your application:
|
||||
|
||||
Reference in New Issue
Block a user