{"id":13668372,"url":"https://github.com/salesforcecli/plugin-lwc-test","last_synced_at":"2025-04-26T22:31:04.778Z","repository":{"id":37846442,"uuid":"201102372","full_name":"salesforcecli/plugin-lwc-test","owner":"salesforcecli","description":"Tools for unit testing Lightning web components in a Salesforce DX workspace","archived":false,"fork":false,"pushed_at":"2025-04-20T06:52:18.000Z","size":1326,"stargazers_count":17,"open_issues_count":11,"forks_count":9,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-04-25T19:03:58.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/salesforcecli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-07T18:02:02.000Z","updated_at":"2025-04-22T02:13:35.000Z","dependencies_parsed_at":"2023-02-08T08:00:43.062Z","dependency_job_id":"60ec36cc-35d3-44dc-bf9f-39540e492e9d","html_url":"https://github.com/salesforcecli/plugin-lwc-test","commit_stats":{"total_commits":123,"total_committers":19,"mean_commits":6.473684210526316,"dds":0.5121951219512195,"last_synced_commit":"024530c2ac27f3097f4edb075ccb1cc3b14cabf4"},"previous_names":["salesforce/sfdx-plugin-lwc-test"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-lwc-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-lwc-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-lwc-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-lwc-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salesforcecli","download_url":"https://codeload.github.com/salesforcecli/plugin-lwc-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251063301,"owners_count":21530833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T08:00:33.143Z","updated_at":"2025-04-26T22:31:04.192Z","avatar_url":"https://github.com/salesforcecli.png","language":"TypeScript","funding_links":[],"categories":["Official plugins/modules from Salesforce"],"sub_categories":[],"readme":"@salesforce/sfdx-plugin-lwc-test\n=============\n\nTools for unit testing Lightning web components in a Salesforce DX workspace\n\n## Usage\n\nInstall as a plugin in the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). While this plugin is in pilot you will need to manually install the plugin into your CLI.\n```sh-session\n$ sfdx plugins:install @salesforce/sfdx-plugin-lwc-test\n$ sfdx force:lightning:lwc:test --help\n```\n\n## Commands \n\n### `sfdx force:lightning:lwc:test:create -f \u003cstring\u003e [--json] [--loglevel trace|debug|info|warn|error|fatal]`\n\ncreate a Lightning web component test with boilerplate code inside a __tests__ directory\n\n```\nUSAGE\n  $ sfdx force:lightning:lwc:test:create -f \u003cstring\u003e [--json] [--loglevel trace|debug|info|warn|error|fatal]\n\nOPTIONS\n  -f, --filepath=filepath                         (required) path to Lightning web component .js file to create a test\n                                                  for\n\n  --json                                          format output as json\n\n  --loglevel=(trace|debug|info|warn|error|fatal)  [default: warn] logging level for this command invocation\n\nEXAMPLE\n  $ sfdx force:lightning:lwc:test:create -f force-app/main/default/lwc/myButton/myButton.js\n```\n\n_See code: [src/commands/force/lightning/lwc/test/create.ts](https://github.com/trevor-bliss/sfdx-lwc-test/blob/v0.0.6/src/commands/force/lightning/lwc/test/create.ts)_\n\n### `sfdx force:lightning:lwc:test:run [-d] [--watch] [--json] [--loglevel trace|debug|info|warn|error|fatal]`\n\ninvoke Lightning web component Jest unit tests\n\n```\nUSAGE\n  $ sfdx force:lightning:lwc:test:run [-d] [--watch] [--json] [--loglevel trace|debug|info|warn|error|fatal]\n\nOPTIONS\n  -d, --debug                                     run tests in debug mode\n  --json                                          format output as json\n  --loglevel=(trace|debug|info|warn|error|fatal)  [default: warn] logging level for this command invocation\n  --watch                                         run tests in watch mode\n\nEXAMPLES\n  $ sfdx force:lightning:lwc:test:run\n  $ sfdx force:lightning:lwc:test:run -w\n```\n\n_See code: [src/commands/force/lightning/lwc/test/run.ts](https://github.com/trevor-bliss/sfdx-lwc-test/blob/v0.0.6/src/commands/force/lightning/lwc/test/run.ts)_\n\n### `sfdx force:lightning:lwc:test:setup [--json] [--loglevel trace|debug|info|warn|error|fatal]`\n\ninstall Jest unit testing tools for Lightning web components\n\n```\nUSAGE\n  $ sfdx force:lightning:lwc:test:setup [--json] [--loglevel trace|debug|info|warn|error|fatal]\n\nOPTIONS\n  --json                                          format output as json\n  --loglevel=(trace|debug|info|warn|error|fatal)  [default: warn] logging level for this command invocation\n\nEXAMPLE\n  $ sfdx force:lightning:lwc:test:setup\n```\n\n_See code: [src/commands/force/lightning/lwc/test/setup.ts](https://github.com/trevor-bliss/sfdx-lwc-test/blob/v0.0.6/src/commands/force/lightning/lwc/test/setup.ts)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalesforcecli%2Fplugin-lwc-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalesforcecli%2Fplugin-lwc-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalesforcecli%2Fplugin-lwc-test/lists"}