ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 349 - Certified Platform Developer II discussion

Report
Export

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.
Answers
A.
Reset the DOM after each test with the after Each method.
B.
Add a teardown block to reset the DOM after each test.
Answers
B.
Add a teardown block to reset the DOM after each test.
C.
Create a new describe block for each test
Answers
C.
Create a new describe block for each test
D.
Create a new jsdom instance for each test
Answers
D.
Create a new jsdom instance for each test
Suggested answer: C
asked 23/09/2024
Manuel Guerrero Rojas
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first