Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Salesforce Certified Platform Developer II ( Plat-Dev-301 ) PDII Question # 34 Topic 4 Discussion

Salesforce Certified Platform Developer II ( Plat-Dev-301 ) PDII Question # 34 Topic 4 Discussion

PDII Exam Topic 4 Question 34 Discussion:
Question #: 34
Topic #: 4

A developer is writing a Jest test for a Lightning web component that conditionally displays child components based on a user’s checkbox selections. What should the developer do to properly test that the correct components display and hide for each scenario?


A.

Add a teardown block to reset the DOM after each test.9


B.

Create a new describe block for each test.10


C.

Create a new j.sdom instance for each test.11


D.

Reset the DOM after each test with the afterEach() method.12


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.