@snapvisor/storybook 7.0.0 → 7.0.2
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/dist/test-runner.mjs
CHANGED
|
@@ -104,10 +104,10 @@ function getFitToContentFromParameters(parameters) {
|
|
|
104
104
|
async function storybookArgosScreenshot(handler, context, options) {
|
|
105
105
|
const argosOptions = {
|
|
106
106
|
...options,
|
|
107
|
-
stabilize: options?.stabilize
|
|
107
|
+
stabilize: typeof options?.stabilize === "object" ? {
|
|
108
108
|
waitForAriaBusy: false,
|
|
109
|
-
...
|
|
110
|
-
}
|
|
109
|
+
...options.stabilize
|
|
110
|
+
} : options?.stabilize ?? { waitForAriaBusy: false }
|
|
111
111
|
};
|
|
112
112
|
const version = await getArgosStorybookVersion();
|
|
113
113
|
const storyUrl = `http://localhost:6006/?path=/story/${context.story.id}`;
|
package/dist/vitest-plugin.d.mts
CHANGED
|
@@ -41,7 +41,7 @@ type ArgosScreenshotCommandArgs = [Pick<StorybookScreenshotContext<Frame>, "name
|
|
|
41
41
|
interface ArgosVitestPluginOptions extends ArgosReporterConfig, ArgosScreenshotOptions {
|
|
42
42
|
/**
|
|
43
43
|
* Upload the report to Snapvisor.
|
|
44
|
-
* @default
|
|
44
|
+
* @default false
|
|
45
45
|
*/
|
|
46
46
|
uploadToArgos?: boolean;
|
|
47
47
|
}
|
package/dist/vitest-plugin.mjs
CHANGED
|
@@ -91,10 +91,10 @@ function getFitToContentFromParameters(parameters) {
|
|
|
91
91
|
async function storybookArgosScreenshot(handler, context, options) {
|
|
92
92
|
const argosOptions = {
|
|
93
93
|
...options,
|
|
94
|
-
stabilize: options?.stabilize
|
|
94
|
+
stabilize: typeof options?.stabilize === "object" ? {
|
|
95
95
|
waitForAriaBusy: false,
|
|
96
|
-
...
|
|
97
|
-
}
|
|
96
|
+
...options.stabilize
|
|
97
|
+
} : options?.stabilize ?? { waitForAriaBusy: false }
|
|
98
98
|
};
|
|
99
99
|
const version = await getArgosStorybookVersion();
|
|
100
100
|
const storyUrl = `http://localhost:6006/?path=/story/${context.story.id}`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapvisor/storybook",
|
|
3
3
|
"description": "Visual testing for Storybook test runner.",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.2",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"node": ">=22.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@snapvisor/core": "7.0.
|
|
53
|
-
"@snapvisor/playwright": "8.0.
|
|
52
|
+
"@snapvisor/core": "7.0.1",
|
|
53
|
+
"@snapvisor/playwright": "8.0.1",
|
|
54
54
|
"@snapvisor/util": "5.0.0",
|
|
55
|
-
"@snapvisor/vitest": "0.4.
|
|
55
|
+
"@snapvisor/vitest": "0.4.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@snapvisor/cli": "7.
|
|
58
|
+
"@snapvisor/cli": "7.1.0",
|
|
59
59
|
"@snapvisor/util": "workspace:*",
|
|
60
60
|
"@storybook/addon-docs": "^10.4.6",
|
|
61
61
|
"@storybook/addon-links": "^10.4.6",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"check-format": "prettier --check --ignore-unknown --ignore-path=./.gitignore --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
|
|
101
101
|
"lint": "eslint ."
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "60252cc8da90a38220fd44333e3ac88470bb63ab"
|
|
104
104
|
}
|