A developer has created a Lightning web component that uses the getRecord wire adapter. Which three things should the developer do in a Jest test to validate the wire method is working as expected? (Choose three.)

QuestionsCategory: Certified Platform Developer IIA developer has created a Lightning web component that uses the getRecord wire adapter. Which three things should the developer do in a Jest test to validate the wire method is working as expected? (Choose three.)
Admin Staff asked 4 months ago
A developer has created a Lightning web component that uses the getRecord wire adapter.
Which three things should the developer do in a Jest test to validate the wire method is working as expected? (Choose three.)

A. Use an assert statement to validate results.

B. Import wire from lwc.

C. Use the emit() API.

D. Create a JSON file with mock data.

E. Import getRecord from lightning/uiRecordApi.






 

Suggested Answer: BCE

Community Answer: ACD



This question is in Certified Platform Developer II Exam
For getting Salesforce Certified Platform Developer II











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.