ExamGecko
Question list
Search
Search

List of questions

Search

Question 211 - Certified B2B Commerce Administrator discussion

Report
Export

Which tool should a developer use to author automated tests for custom Lightning web components?

A.
Visual Studio Code
Answers
A.
Visual Studio Code
B.
Salesforce CLI
Answers
B.
Salesforce CLI
C.
Jest
Answers
C.
Jest
D.
Salesforce Developer Console
Answers
D.
Salesforce Developer Console
Suggested answer: C

Explanation:

The tool that a developer should use to author automated tests for custom Lightning web components is Jest.Jest is a JavaScript testing framework that provides features such as mocking, code coverage, snapshots, and asynchronous testing6.Jest is integrated with Salesforce CLI and Visual Studio Code, which makes it easy to create, run, and debug tests for Lightning web components7.Jest tests are written in local JavaScript files that are committed to version control along with the component itself8.Jest tests can verify the functionality, performance, accessibility, and user interface of Lightning web components9.Reference:Jest,Test Lightning Web Components,Write Jest Tests,Testing Strategies

asked 23/09/2024
Keenan Bragg
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first