Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor edits to descriptions. #7

Merged
merged 2 commits into from
Mar 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions messages/create.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"example": "$ sfdx force:lightning:lwc:test:create -f force-app/main/default/lwc/myButton/myButton.js",
"commandDescription": "create a Lightning web component test with boilerplate code inside a __tests__ directory",
"longDescription": "Creates a __tests__ directory in the specified directory. Creates a boilerplate yourComponentName.test.js file in the __tests__ directory.",
"commandDescription": "creates a Lightning web component test file with boilerplate code inside a __tests__ directory.",
"longDescription": "Creates a __tests__ directory in the specified directory. Creates a yourComponentName.test.js file with boilerplate code in the __tests__ directory.",
"filepathFlagDescription": "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'.",
Expand Down
4 changes: 2 additions & 2 deletions messages/run.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"example1": "$ sfdx force:lightning:lwc:test:run",
"example2": "$ sfdx force:lightning:lwc:test:run -w",
"commandDescription": "invoke Lightning web component Jest unit tests",
"longDescription": "Invokes Lightning web component Jest unit tests.",
"commandDescription": "invokes Lightning Web Components Jest unit tests.",
"longDescription": "Invokes Lightning Web Components Jest unit tests.",
"debugFlagDescription": "run tests in debug mode",
"debugFlagLongDescription": "Runs tests in a Node process that an external debugger can connect to. The run pauses until the debugger is connected. For more information, see: https://jestjs.io/docs/en/troubleshooting",
"watchFlagDescription": "run tests in watch mode",
Expand Down
4 changes: 2 additions & 2 deletions messages/setup.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"example": "$ sfdx force:lightning:lwc:test:setup",
"commandDescription": "install Jest unit testing tools for Lightning web components",
"longDescription": "Installs Jest unit testing tools for Lightning web components. For more information, see the Lightning Web Components Dev Guide: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.testing",
"commandDescription": "install Jest unit testing tools for Lightning Web Components.",
"longDescription": "Installs Jest unit testing tools for Lightning Web Components. For more information, see the Lightning Web Components Dev Guide: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.testing",
"errorNodeNotFound": "Could not retrieve Node.js version. Verify it is properly installed and try again.",
"errorNpmNotFound": "npm command not found. Verify npm is properly installed and try again.",
"errorNodeVersion": "Node.js version too low. Version 8.12.0 or higher required. Found version %s",
Expand Down
1 change: 1 addition & 0 deletions src/commands/force/lightning/lwc/test/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const messages = Messages.loadMessages('@salesforce/sfdx-plugin-lwc-test', 'crea

export default class Create extends SfdxCommand {
public static description = messages.getMessage('commandDescription');
public static longDescription = messages.getMessage('longDescription');

public static examples = [
messages.getMessage('example')
Expand Down
1 change: 1 addition & 0 deletions src/commands/force/lightning/lwc/test/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const messages = Messages.loadMessages('@salesforce/sfdx-plugin-lwc-test', 'run'
export default class Run extends SfdxCommand {

public static description = messages.getMessage('commandDescription');
public static longDescription = messages.getMessage('longDescription');

public static examples = [
messages.getMessage('example1'),
Expand Down
1 change: 1 addition & 0 deletions src/commands/force/lightning/lwc/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const forceignoreEntry = '\n# LWC Jest tests\n**/__tests__/**';
export default class Setup extends SfdxCommand {

public static description = messages.getMessage('commandDescription');
public static longDescription = messages.getMessage('longDescription');

public static examples = [
messages.getMessage('example')
Expand Down