List of questions
Related questions
Question 349 - Certified Platform Developer II discussion
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
Your answer:
0 comments
Sorted by
Leave a comment first