Salesforce
PDII · Question #318
What are three reasons that a developer should write Jest tests for Lightning web components? (Choose three.)
The correct answer is A. To verify the DOM output of a component B. To verify that events fire when expected D. To test basic user interaction. See the full explanation below for the reasoning.
Question
What are three reasons that a developer should write Jest tests for Lightning web components? (Choose three.)
Options
- ATo verify the DOM output of a component
- BTo verify that events fire when expected
- CTo test a component's non-public properties
- DTo test basic user interaction
- ETo test how multiple components work together
How the community answered
(21 responses)- A81% (17)
- C5% (1)
- E14% (3)
Community Discussion
No community discussion yet for this question.