@argos-ci/storybook 3.0.1 → 4.0.0
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.js +1 -1
- package/dist/vitest-plugin.js +4 -4
- package/package.json +19 -19
package/dist/test-runner.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
// src/utils/metadata.ts
|
|
11
11
|
import { readVersionFromPackage } from "@argos-ci/util";
|
|
12
|
-
import { createRequire } from "
|
|
12
|
+
import { createRequire } from "module";
|
|
13
13
|
var require2 = createRequire(import.meta.url);
|
|
14
14
|
async function getArgosStorybookVersion() {
|
|
15
15
|
const pkgPath = require2.resolve("@argos-ci/storybook/package.json");
|
package/dist/vitest-plugin.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
|
|
7
7
|
// src/utils/metadata.ts
|
|
8
8
|
import { readVersionFromPackage } from "@argos-ci/util";
|
|
9
|
-
import { createRequire } from "
|
|
9
|
+
import { createRequire } from "module";
|
|
10
10
|
var require2 = createRequire(import.meta.url);
|
|
11
11
|
async function getArgosStorybookVersion() {
|
|
12
12
|
const pkgPath = require2.resolve("@argos-ci/storybook/package.json");
|
|
@@ -192,7 +192,7 @@ var ArgosReporter = class {
|
|
|
192
192
|
};
|
|
193
193
|
|
|
194
194
|
// src/vitest-plugin.ts
|
|
195
|
-
import { resolve } from "
|
|
195
|
+
import { resolve } from "path";
|
|
196
196
|
var createArgosScreenshotCommand = (pluginOptions) => {
|
|
197
197
|
const { applyGlobals, ...screenshotOptions } = pluginOptions ?? {};
|
|
198
198
|
return async (ctx, testContext) => {
|
|
@@ -265,8 +265,8 @@ function applyFitToContent(options, fitToContent) {
|
|
|
265
265
|
const { padding, zoom } = fitToContent;
|
|
266
266
|
return {
|
|
267
267
|
...options,
|
|
268
|
-
element: "body
|
|
269
|
-
argosCSS: `body
|
|
268
|
+
element: "body",
|
|
269
|
+
argosCSS: `body { padding: ${padding}px; width: fit-content; height: fit-content; min-height: initial; zoom: ${zoom}; }` + (options?.argosCSS ?? "")
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
var cwd = process.cwd();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/storybook",
|
|
3
3
|
"description": "Visual testing for Storybook test runner.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -47,35 +47,35 @@
|
|
|
47
47
|
"./package.json": "./package.json"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"node": ">=
|
|
50
|
+
"node": ">=20.0.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@argos-ci/playwright": "
|
|
54
|
-
"@argos-ci/util": "
|
|
53
|
+
"@argos-ci/playwright": "6.0.0",
|
|
54
|
+
"@argos-ci/util": "3.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@argos-ci/cli": "
|
|
58
|
-
"@argos-ci/core": "
|
|
57
|
+
"@argos-ci/cli": "3.0.0",
|
|
58
|
+
"@argos-ci/core": "4.0.0",
|
|
59
59
|
"@argos-ci/util": "workspace:*",
|
|
60
|
-
"@storybook/addon-docs": "^9.0
|
|
61
|
-
"@storybook/addon-links": "^9.0
|
|
62
|
-
"@storybook/addon-themes": "^9.0
|
|
63
|
-
"@storybook/addon-vitest": "^9.0
|
|
64
|
-
"@storybook/react-vite": "^9.0
|
|
60
|
+
"@storybook/addon-docs": "^9.1.0",
|
|
61
|
+
"@storybook/addon-links": "^9.1.0",
|
|
62
|
+
"@storybook/addon-themes": "^9.1.0",
|
|
63
|
+
"@storybook/addon-vitest": "^9.1.0",
|
|
64
|
+
"@storybook/react-vite": "^9.1.0",
|
|
65
65
|
"@storybook/test-runner": "^0.23.0",
|
|
66
|
-
"@types/react": "^19.1.
|
|
67
|
-
"@types/react-dom": "^19.1.
|
|
66
|
+
"@types/react": "^19.1.9",
|
|
67
|
+
"@types/react-dom": "^19.1.7",
|
|
68
68
|
"@vitest/browser": "^3.2.4",
|
|
69
69
|
"@vitest/coverage-v8": "^3.2.4",
|
|
70
70
|
"@vitest/ui": "^3.2.4",
|
|
71
71
|
"http-server": "^14.1.1",
|
|
72
|
-
"playwright": "^1.
|
|
72
|
+
"playwright": "^1.54.2",
|
|
73
73
|
"prop-types": "^15.8.1",
|
|
74
|
-
"react": "^19.1.
|
|
75
|
-
"react-dom": "^19.1.
|
|
76
|
-
"storybook": "^9.0
|
|
74
|
+
"react": "^19.1.1",
|
|
75
|
+
"react-dom": "^19.1.1",
|
|
76
|
+
"storybook": "^9.1.0",
|
|
77
77
|
"vitest": "catalog:",
|
|
78
|
-
"wait-on": "^8.0.
|
|
78
|
+
"wait-on": "^8.0.4"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "tsup && cp ./src/test-runner.cjs ./dist",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"check-format": "prettier --check --ignore-unknown --ignore-path=./.gitignore --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
|
|
98
98
|
"lint": "eslint ."
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "807e4a9f3c4bfddd4197ed7394b032a39bc1c58e"
|
|
101
101
|
}
|