sfdx force:lightning:lwc:test:setup

Install Jest unit testing tools for Lightning Web Components

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation