exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 337 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 337
Topic #: 1
[All Certified Platform Developer II Questions]

What are three reasons that a developer should write Jest tests for Lightning web components? (Choose three.)

  • A. To verify the DOM output of a component
  • B. To verify that events fire when expected
  • C. To test a component's non-public properties
  • D. To test basic user interaction
  • E. To test how multiple components work together
Show Suggested Answer Hide Answer
Suggested Answer: ABD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RegNav
6 months, 4 weeks ago
ABD. Write Jest tests to: Test a component in isolation Test a component’s public API (@api properties and methods, events) Test basic user interaction (clicks) Verify the DOM output of a component Verify that events fire when expected
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...