@snapvisor/storybook 7.0.0 → 7.0.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.
@@ -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
- ...typeof options?.stabilize === "object" ? options.stabilize : {}
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}`;
@@ -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 true
44
+ * @default false
45
45
  */
46
46
  uploadToArgos?: boolean;
47
47
  }
@@ -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
- ...typeof options?.stabilize === "object" ? options.stabilize : {}
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.0",
4
+ "version": "7.0.1",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -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": "b27308a53667724cc3c4f3e5eb7811bce3321f15"
103
+ "gitHead": "c755c5695739eb6f453969ea02babb317425ba45"
104
104
  }