Skip to content

Commit 6fb41ff

Browse files
fix: fix cli command (#566)
1 parent 56a77d1 commit 6fb41ff

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.changeset/rude-pots-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wdio/visual-reporter": patch
3+
---
4+
5+
Fix cli command

packages/visual-reporter/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const config = {
1212
services: [
1313
[
1414
// Also installed as a dependency
15-
"visual-regression",
15+
"visual",
1616
{
1717
createJsonReportFiles: true,
1818
},
@@ -42,7 +42,7 @@ To build the report you can call the CLI or use prompts to answer all questions
4242

4343
### CLI
4444

45-
You can call `npx @wdio/visual-reporter` with the following arguments
45+
You can call `npx wdio-visual-reporter` with the following arguments
4646

4747
#### `--jsonOutput`
4848

@@ -66,14 +66,13 @@ This will generate extra logs when errors happen
6666
#### Example usage
6767

6868
```sh
69-
npx @wdio/visual-reporter --jsonOutput=/Users/wdio/visual-testing/.tmp/actual/output.json --reportFolder=/Users/wdio/visual-testing/.tmp/ --logLevel=debug
69+
npx wdio-visual-reporter --jsonOutput=/Users/wdio/visual-testing/.tmp/actual/output.json --reportFolder=/Users/wdio/visual-testing/.tmp/ --logLevel=debug
7070
```
7171

7272
This will generate the following logs
7373

7474
```logs
75-
npx @wdio/visual-reporter
76-
--jsonOutput=/Users/wdio/visual-testing/.tmp/actual/output.json --reportFolder=/Users/wdio/visual-testing/.tmp/ --logLevel=debug
75+
npx wdio-visual-reporter --jsonOutput=/Users/wdio/visual-testing/.tmp/actual/output.json --reportFolder=/Users/wdio/visual-testing/.tmp/ --logLevel=debug
7776
✔ Build output copied successfully to "/Users/wdio/visual-testing/.tmp/report".
7877
⠋ Prepare report assets...
7978
@@ -85,7 +84,7 @@ npx @wdio/visual-reporter
8584

8685
### Prompts
8786

88-
Open a terminal, enter `npx @wdio/visual-reporter` and answer all the questions
87+
Open a terminal, enter `npx wdio-visual-reporter` and answer all the questions
8988

9089
https://github.com/user-attachments/assets/fdd8a838-29c0-4235-9bac-fff0269e292e
9190

packages/visual-reporter/scripts/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const config = {
1010
services: [
1111
[
1212
// Also installed as a dependency
13-
"visual-regression",
13+
"visual",
1414
{
1515
createJsonReportFiles: true,
1616
},

0 commit comments

Comments
 (0)