Salesforce Certified Development Lifecycle and Deployment Architect — Question 7
Universal Containers has started building a customer Lightning community that contains a few dozen Aura components. The development team lead has come to the Salesforce architect about questions regarding testing the Lightning components.
What two knowledge points can the architect pass to the development team lead? (Choose two.)
Answer options
- A. The testing can be viewed in the lightning.force.com/c/jasminetests.app URL. The page loads and runs Jasmine test and writes pass/fail information to the screen.
- B. There is a $T test helper object that can be used to create the instance of the Lightning component, and its promise enabled.
- C. Install the Lightning test service AppExchange package to enable the Aura component testing.
- D. The testing of the JavaScript part of the Aura component can be tested in the Jest framework and the Apex controllers can be tested using test classes.
Correct answer: A, B
Explanation
Option A is correct because it describes the specific URL where Jasmine tests can be executed and results displayed. Option B is also correct as it mentions the utility of the $T test helper object for component instantiation and promise support. Options C and D are incorrect; C suggests installing a package that is not required for testing, while D incorrectly separates the testing frameworks for JavaScript and Apex, as they are distinct but both valid methods.