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 Practice Questions with 280 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments