Skip to content

Commit 9dedd1c

Browse files
[no-ticket] fix visual-snapshots setup (#192)
- include visual-snapshots in replace_pkg_version.sh mapping - include visual-snapshots in packages.json
1 parent d8feea2 commit 9dedd1c

16 files changed

+605
-10639
lines changed

Diff for: visual-js/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"visual-cypress",
88
"visual-nightwatch",
99
"visual-playwright",
10+
"visual-snapshots",
1011
"visual-storybook"
1112
],
1213
"lint-staged": {

Diff for: visual-js/replace_pkg_version.sh

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ FILE_MAP=(
3434
["@saucelabs/nightwatch-sauce-visual-service"]="visual-nightwatch/src/utils/constants.ts"
3535
["@saucelabs/visual-storybook"]="visual-storybook/src/api.ts"
3636
["@saucelabs/wdio-sauce-visual-service"]="visual-wdio/src/SauceVisualService.ts"
37+
["@saucelabs/visual-snapshots"]="visual-snapshots/src/index.ts"
3738
["@saucelabs/visual-playwright"]="visual-playwright/src/api.ts"
3839
# Add more mappings as needed
3940
)

Diff for: visual-js/visual-snapshots/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ node >= 18
1111
## Installation
1212

1313
```sh
14-
npm install --save @saucelabs/visual-snapshots
14+
yarn install --save @saucelabs/visual-snapshots
1515
```
1616

1717
## Development
1818

1919
Build:
2020

2121
```sh
22-
npm run build
22+
yarn run build
2323
```
2424

2525
Execute:
2626

2727
```sh
28-
node lib/index.js [command] [params]
28+
node lib/src/index.js pdf [params]
2929
```
3030

3131
Run tests:
3232

3333
```sh
34-
npm run test
34+
yarn run test
3535
```
3636

3737
## Reusing pdf conversion code

0 commit comments

Comments
 (0)