Salesforce CLI Command Reference
Release Notes
Deprecation Policy
force data bulk delete
force data bulk status
force data bulk upsert
force lightning lwc test create
force lightning lwc test run
force lightning lwc test setup
invokes Lightning Web Components Jest unit tests.
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑debug | ‑d | Type: Boolean run tests in debug mode |
‑‑json | N/A | Type: Boolean format output as json |
‑‑loglevel | N/A | Type: Value Valid Values: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATALDefault value: warnlogging level for this command invocation |
‑‑watch | N/A | Type: Boolean run tests in watch mode |
1sfdx force:lightning:lwc:test:run1sfdx force:lightning:lwc:test:run -w