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...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Node.js
What's the key difference between using the global mock import vs. the per-test t.mock context for mocking a method?
A
There is no difference
B
t.mock automatically restores the original implementation after its specific test; the global mock import does not
C
The global import is faster
D
t.mock only works with async tests
Check Answer