force lightning lwc test create

Description for force lightning lwc test create 

creates a Lightning web component test file with boilerplate code inside a tests directory.

Flags 

Flag Name (Long)Flag Name (Short)Description
‑‑filepath‑fType: Value
Required

path to Lightning web component .js file to create a test for
‑‑jsonN/AType: Boolean

format output as json
‑‑loglevelN/AType: Value
Valid Values: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
Default value: warn

logging level for this command invocation

Examples for force lightning lwc test create 

1sfdx force:lightning:lwc:test:create -f force-app/main/default/lwc/myButton/myButton.js