storybook-addon-vis 0.18.7 → 0.19.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/vitest-plugin.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import { ComparisonMethod, VisOptions } from 'vitest-plugin-vis/config';
|
|
|
2
2
|
export { trimCommonFolder } from 'vitest-plugin-vis/config';
|
|
3
3
|
import * as vitest_plugin_vis_commands from 'vitest-plugin-vis/commands';
|
|
4
4
|
import * as vitest_node from 'vitest/node';
|
|
5
|
+
import * as vite from 'vite';
|
|
5
6
|
import { Omit } from 'type-plus';
|
|
6
7
|
|
|
7
8
|
declare function storybookVis<M extends ComparisonMethod>(options?: Omit<VisOptions<M>, 'preset'> | undefined): {
|
|
8
9
|
name: string;
|
|
9
|
-
config(this: void): {
|
|
10
|
+
config(this: void, userConfig: vite.UserConfig): {
|
|
10
11
|
test: {
|
|
11
12
|
browser: {
|
|
12
13
|
name: string;
|
|
@@ -16,7 +17,6 @@ declare function storybookVis<M extends ComparisonMethod>(options?: Omit<VisOpti
|
|
|
16
17
|
hasImageSnapshot: vitest_node.BrowserCommand<[taskId: string, snapshotId: string | undefined, isAutoSnapshot: boolean]>;
|
|
17
18
|
matchImageSnapshot: vitest_node.BrowserCommand<[taskId: string, subject: string, isAutoSnapshot: boolean, options?: vitest_plugin_vis_commands.MatchImageSnapshotOptions | undefined]>;
|
|
18
19
|
prepareImageSnapshotComparison: vitest_node.BrowserCommand<[taskId: string, snapshotId: string, isAutoSnapshot: boolean, options?: vitest_plugin_vis_commands.MatchImageSnapshotOptions | undefined]>;
|
|
19
|
-
writeImageSnapshot: vitest_node.BrowserCommand<[relativeFilePath: string, imageBase64: string]>;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
setupFiles: string[];
|
package/dist/vitest-setup.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as vitest_plugin_vis_setup from 'vitest-plugin-vis/setup';
|
|
2
2
|
import { SnapshotMeta } from 'vitest-plugin-vis';
|
|
3
|
+
export { SnapshotMeta, setAutoSnapshotOptions } from 'vitest-plugin-vis';
|
|
3
4
|
|
|
4
5
|
declare const vis: vitest_plugin_vis_setup.VisClientConfigurator<SnapshotMeta<any> & {
|
|
5
6
|
tags: string[];
|
package/dist/vitest-setup.js
CHANGED
package/dist/vitest-setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vitest-setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/vitest-setup.ts"],"names":[],"mappings":";;;;AAKa,IAAA,GAAA,GAAM,UAAkD,QAAQ","file":"vitest-setup.js","sourcesContent":["// `storybook-addon-vis/vitest-setup` provides code needed in `vitest.setup.ts`.\nimport type { SnapshotMeta } from 'vitest-plugin-vis'\nimport { createVis } from 'vitest-plugin-vis/setup'\nimport { commands } from './client/vitest_proxy.ts'\n\nexport const vis = createVis<SnapshotMeta<any> & { tags: string[] }>(commands)\nexport { setAutoSnapshotOptions, type SnapshotMeta } from 'vitest-plugin-vis'\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook-addon-vis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Storybook Vitest visual testing addon",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"image-snapshot",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"type-plus": "8.0.0-beta.7",
|
|
61
|
-
"vitest-plugin-vis": "2.
|
|
61
|
+
"vitest-plugin-vis": "2.4.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@storybook/addon-essentials": "^8.6.3",
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
"build": "tsup",
|
|
133
133
|
"build:sb": "storybook build",
|
|
134
134
|
"clean": "rimraf coverage dist esm *.tsbuildinfo vitest.*.timestamp*",
|
|
135
|
+
"clean:vis:local": "rimraf __vis__/local",
|
|
135
136
|
"cov": "vitest run --coverage",
|
|
136
137
|
"coverage": "vitest run --coverage",
|
|
137
138
|
"dev": "run-p build:watch w",
|
package/src/vitest-setup.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { SnapshotMeta } from 'vitest-plugin-vis'
|
|
2
1
|
// `storybook-addon-vis/vitest-setup` provides code needed in `vitest.setup.ts`.
|
|
2
|
+
import type { SnapshotMeta } from 'vitest-plugin-vis'
|
|
3
3
|
import { createVis } from 'vitest-plugin-vis/setup'
|
|
4
4
|
import { commands } from './client/vitest_proxy.ts'
|
|
5
5
|
|
|
6
6
|
export const vis = createVis<SnapshotMeta<any> & { tags: string[] }>(commands)
|
|
7
|
+
export { setAutoSnapshotOptions, type SnapshotMeta } from 'vitest-plugin-vis'
|