nerdexam
Salesforce

PDII · Question #246

PDII Question #246: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #246. The question stem and answer options stay visible for context.

Question

A lead developer is creating tests for a Lightning web component. The component re-renders when a property called bypassSelection changes its value. What should the developer use to test that the component re-renders successfully when the property changes?

Options

  • AWindow.setInterval()
  • BWindow.setState()
  • CdispatchEvent (new CustomEvent('bypassSelection'))
  • DPromise.resolve()

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice