Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 749 Bytes

File metadata and controls

33 lines (17 loc) · 749 Bytes

examples

  • 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

summary

Create a Lightning web component test file.

description

Creates a tests directory in the specified directory. Creates a yourComponentName.test.js file with boilerplate code in the tests directory.

flags.file.summary

Path to Lightning web component .js file to create a test for.

errorFileNotFound

File not found: '%s'.

errorFileNotJs

File must be a JavaScript file. The '.js' extension was not found: '%s'.

errorFileExists

Test file already exists: '%s'.

logSuccess

Test case successfully created: %s