Exam4Training

What should the developer do to property test that the correct components display and hide for each scenario?

A developer is writing a Jest for a Lightning web component that conditionally displays child components based on a user’s checkbox selections.

What should the developer do to property test that the correct components display and hide for each scenario?
A . Reset the DOM after each test with the after Each method.
B. Add a teardown block to reset the DOM after each test.
C. Create a new describe block for each test
D. Create a new jsdom instance for each test

Answer: C

Latest PDII Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version