To install the LTS in your scratch Org, run the following command:
sfdx force:Lightning:test:install
Once the package is installed, note that there are sample Lightning Components and tests provided in the package to help us understand how to write tests.
Now, to run the Lightning tests via the CLI, use the following command:
sfdx force:Lightning:test:run
You will see the output of the CLI, as shown in the following screenshot:
You can also manually run this by opening up the Lightning app from the Developer Console. Run this manually by creating a Lightning app named jasmineTests.app. The Lightning app code for jasmineTests.app ...