vitest-plugin-vis 5.1.4 → 5.1.6

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.
@@ -1 +1,2 @@
1
+ import "../../../shared/types.mjs";
1
2
  import "vitest";
@@ -1,3 +1,6 @@
1
+ import "../config/types.mjs";
2
+ import "./vis_server_context.types.mjs";
3
+
1
4
  //#region src/server/snapshot_path.d.ts
2
5
 
3
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot_path.d.mts","names":[],"sources":["../../src/server/snapshot_path.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;iBAgCgB,kBAAA"}
1
+ {"version":3,"file":"snapshot_path.d.mts","names":[],"sources":["../../src/server/snapshot_path.ts"],"sourcesContent":[],"mappings":";;;;;;AAgCA;;;;;;;iBAAgB,kBAAA"}
@@ -1,4 +1,5 @@
1
1
  import { PixelDiffOptions } from "../shared/types.mjs";
2
+ import "../config/types.mjs";
2
3
  import { ExtendedBrowserCommandContext } from "./vis_server_context.types.mjs";
3
4
  import "../index.mjs";
4
5
  import * as ssim_js0 from "ssim.js";
@@ -1 +1 @@
1
- {"version":3,"file":"vis_options.d.mts","names":[],"sources":["../../src/server/vis_options.ts"],"sourcesContent":[],"mappings":";;;;;;;;iBA6BgB,YAAA,UAAsB;;wBAA6B,QAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"vis_options.d.mts","names":[],"sources":["../../src/server/vis_options.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AA6BmE,iBAAnD,YAAA,CAAmD,OAAA,EAA7B,6BAA6B,CAAA,EAAA;;wBAAA,QAAA,CAAA,OAAA"}
@@ -1,3 +1,4 @@
1
+ import "../shared/types.mjs";
1
2
  import { BrowserCommandContext } from "vitest/node";
2
3
 
3
4
  //#region src/server/vis_server_context.types.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"vis_server_context.types.d.mts","names":[],"sources":["../../src/server/vis_server_context.types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;KA6CK,cAAc,KAAK,SAAS,mBACpB,IAAI,gBAAgB,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;KAGzC,6BAAA;QACL;WACG;UACD;YACE,YAAY;YACZ;WAED,MACR;;;;;;;;;;YAWS"}
1
+ {"version":3,"file":"vis_server_context.types.d.mts","names":[],"sources":["../../src/server/vis_server_context.types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;KA6CK,cAAc,KAAK,SAAS,mBACpB,IAAI,gBAAgB,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;KAGzC,6BAAA;QACL;WACG;UACD;YACE,YAAY;YACZ;WAED,MACR;;;;;;;;;;YAWS"}
@@ -1,6 +1,6 @@
1
1
  import { ImageSnapshotComparisonInfo, MatchImageSnapshotOptions } from "./types.mjs";
2
2
  import { VisOptions } from "../config/types.mjs";
3
- import { Pick } from "type-plus";
3
+ import { ObjectPlus } from "type-plus";
4
4
 
5
5
  //#region src/shared/commands.types.d.ts
6
6
  interface PrepareImageSnapshotComparisonCommand {
@@ -17,7 +17,7 @@ interface SetupVisSuiteCommand {
17
17
  *
18
18
  * In subsequent runs, it will only remove the results and diffs directory of the current suite.
19
19
  */
20
- setupVisSuite: () => Promise<Pick<VisOptions, 'comparisonMethod' | 'diffOptions' | 'failureThreshold' | 'failureThresholdType' | 'snapshotKey' | 'subject' | 'timeout'>>;
20
+ setupVisSuite: () => Promise<ObjectPlus.Pick<VisOptions, 'comparisonMethod' | 'diffOptions' | 'failureThreshold' | 'failureThresholdType' | 'snapshotKey' | 'subject' | 'timeout'>>;
21
21
  }
22
22
  interface LoadImageSnapshotResultsCommand {
23
23
  loadImageSnapshotResults(taskId: string): Promise<ImageSnapshotResult[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"commands.types.d.mts","names":[],"sources":["../../src/shared/commands.types.ts"],"sourcesContent":[],"mappings":";;;;;UAIiB,qCAAA;8EAIL,0CACN,QAAQ;AALd;AAIY,UAIK,yCAAA,CAJ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;;;;;;;;;;UAJA,uBAAA;qEACmD;;UAGnD,6BAAA;;;;0CAIwB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-plugin-vis",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "description": "Vitest visual testing plugin",
5
5
  "keywords": [
6
6
  "image-snapshot",
@@ -57,11 +57,11 @@
57
57
  "pngjs": "^7.0.0",
58
58
  "rimraf": "^6.1.3",
59
59
  "ssim.js": "^3.5.0",
60
- "type-plus": "^8.0.0-beta.10"
60
+ "type-plus": "8.0.0-beta.12"
61
61
  },
62
62
  "devDependencies": {
63
- "@repobuddy/storybook": "^2.32.0",
64
- "@repobuddy/typescript": "^2.1.0",
63
+ "@repobuddy/storybook": "^2.33.1",
64
+ "@repobuddy/typescript": "^2.2.0",
65
65
  "@storybook-community/storybook-dark-mode": "^7.1.3",
66
66
  "@storybook/addon-docs": "^10.5.10",
67
67
  "@storybook/addon-vitest": "^10.5.10",
@@ -1,4 +1,4 @@
1
- import type { Pick } from 'type-plus'
1
+ import type { ObjectPlus } from 'type-plus'
2
2
  import type { VisOptions } from '../config/types.ts'
3
3
  import type { ImageSnapshotComparisonInfo, MatchImageSnapshotOptions } from './types.ts'
4
4
 
@@ -26,7 +26,7 @@ export interface SetupVisSuiteCommand {
26
26
  * In subsequent runs, it will only remove the results and diffs directory of the current suite.
27
27
  */
28
28
  setupVisSuite: () => Promise<
29
- Pick<
29
+ ObjectPlus.Pick<
30
30
  VisOptions,
31
31
  | 'comparisonMethod'
32
32
  | 'diffOptions'