Skip to content

[no-ticket] fix visual-snapshots setup #192

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

Merged
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
1 change: 1 addition & 0 deletions visual-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"visual-cypress",
"visual-nightwatch",
"visual-playwright",
"visual-snapshots",
"visual-storybook"
],
"lint-staged": {
Expand Down
1 change: 1 addition & 0 deletions visual-js/replace_pkg_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ FILE_MAP=(
["@saucelabs/nightwatch-sauce-visual-service"]="visual-nightwatch/src/utils/constants.ts"
["@saucelabs/visual-storybook"]="visual-storybook/src/api.ts"
["@saucelabs/wdio-sauce-visual-service"]="visual-wdio/src/SauceVisualService.ts"
["@saucelabs/visual-snapshots"]="visual-snapshots/src/index.ts"
["@saucelabs/visual-playwright"]="visual-playwright/src/api.ts"
# Add more mappings as needed
)
Expand Down
8 changes: 4 additions & 4 deletions visual-js/visual-snapshots/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ node >= 18
## Installation

```sh
npm install --save @saucelabs/visual-snapshots
yarn install --save @saucelabs/visual-snapshots
```

## Development

Build:

```sh
npm run build
yarn run build
```

Execute:

```sh
node lib/index.js [command] [params]
node lib/src/index.js pdf [params]
```

Run tests:

```sh
npm run test
yarn run test
```

## Reusing pdf conversion code
Expand Down
Loading