NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
React UI Engineering: High-Performance Architecture
Testing React Components
Quiz
Chapter Quiz: Testing React Components
Advanced Assessment: High-Integrity Testing
Complete this assessment with 100% score to master this chapter.
01
Why is MSW preferred over manual fetch mocks?
It is faster to set up.
It intercepts requests at the network level, keeping component code identical to production.
It only works with Jest.
It automatically writes the tests for you.
02
What is a major limitation of the JSDOM environment?
It cannot run JavaScript.
It lacks a layout engine, so it cannot compute element dimensions or positions.
It is too slow for CI/CD.
It doesn't support React hooks.
03
Which utility is used to test React hooks in isolation?
render()
renderHook()
act()
createHookContainer()
Submit Answers
Back to Lesson
Next Chapter