@poveste/plugin-screenshot 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Poveste Screenshot visual regression testing
|
|
2
2
|
|
|
3
|
-
```
|
|
3
|
+
```bash
|
|
4
4
|
pnpm add -D @poveste/plugin-screenshot
|
|
5
5
|
```
|
|
6
6
|
|
|
7
|
-
Add the plugin in
|
|
7
|
+
Add the plugin in your Poveste config:
|
|
8
8
|
|
|
9
9
|
```js
|
|
10
10
|
import { HstScreenshot } from '@poveste/plugin-screenshot'
|
|
@@ -21,14 +21,13 @@ export default defineConfig({
|
|
|
21
21
|
|
|
22
22
|
## Setting Up Chrome Linux Sandbox
|
|
23
23
|
|
|
24
|
-
If you get
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ref. https://github.com/sindresorhus/capture-website#faq
|
|
24
|
+
If you get `No usable sandbox!` or `Running as root without --no-sandbox is not
|
|
25
|
+
supported`, set up sandboxing properly on your Linux instance. Alternatively, if you
|
|
26
|
+
completely trust the content being captured, you can disable it (strongly discouraged):
|
|
28
27
|
|
|
29
|
-
```
|
|
30
|
-
import { defineConfig } from 'poveste'
|
|
28
|
+
```js
|
|
31
29
|
import { HstScreenshot } from '@poveste/plugin-screenshot'
|
|
30
|
+
import { defineConfig } from 'poveste'
|
|
32
31
|
|
|
33
32
|
export default defineConfig({
|
|
34
33
|
plugins: [
|
|
@@ -38,3 +37,5 @@ export default defineConfig({
|
|
|
38
37
|
],
|
|
39
38
|
})
|
|
40
39
|
```
|
|
40
|
+
|
|
41
|
+
[Documentation](https://poveste.dev)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/plugin-screenshot",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "Poveste plugin to take screenshots for visual regression testing",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"poveste": "^0.
|
|
49
|
+
"poveste": "^0.8.1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"capture-website": "^4.2.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/node": "^22.10.1",
|
|
59
59
|
"typescript": "5.6.3",
|
|
60
|
-
"poveste": "0.
|
|
60
|
+
"poveste": "0.8.1"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "rimraf dist && tsc -d",
|