-
Create a Lightning web component test file called myButton.test.js for the myButton component:
<%= config.bin %> <%= command.id %> --filef force-app/main/default/lwc/myButton/myButton.js
Create a Lightning web component test file.
Creates a tests directory in the specified directory. Creates a yourComponentName.test.js file with boilerplate code in the tests directory.
Path to Lightning web component .js file to create a test for.
File not found: '%s'.
File must be a JavaScript file. The '.js' extension was not found: '%s'.
Test file already exists: '%s'.
Test case successfully created: %s