DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
React Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
React
Why is mocking at the network boundary (e.g. with MSW) generally preferred over mocking your own data-fetching hook directly?
A
It's always faster to set up
B
It exercises your REAL data-fetching/state-wiring logic, faking only the parts genuinely outside your control (the server's response)
C
It removes the need for any assertions
D
Network-boundary mocking is required by Testing Library
Check Answer