@blazediff/vitest 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/dist/index.d.mts +0 -57
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/vitest",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Vitest matcher for visual regression testing with blazediff",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -33,7 +33,7 @@
33
33
  "homepage": "https://blazediff.dev",
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@blazediff/matcher": "1.2.0"
36
+ "@blazediff/matcher": "1.2.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^24.3.0",
package/dist/index.d.mts DELETED
@@ -1,57 +0,0 @@
1
- import { MatcherOptions } from '@blazediff/matcher';
2
- export { ComparisonResult, ImageInput, MatcherOptions } from '@blazediff/matcher';
3
-
4
- declare module "vitest" {
5
- interface Matchers<T = any> {
6
- /**
7
- * Compare an image against a stored snapshot.
8
- *
9
- * On first run, creates a new snapshot.
10
- * On subsequent runs, compares against the stored snapshot.
11
- *
12
- * @param options - Matcher options including comparison method and thresholds
13
- *
14
- * @example
15
- * ```typescript
16
- * // Compare file path
17
- * await expect('/path/to/screenshot.png').toMatchImageSnapshot({
18
- * method: 'bin',
19
- * failureThreshold: 100,
20
- * failureThresholdType: 'pixel',
21
- * });
22
- *
23
- * // Compare image buffer
24
- * await expect({
25
- * data: imageBuffer,
26
- * width: 800,
27
- * height: 600
28
- * }).toMatchImageSnapshot({
29
- * method: 'ssim',
30
- * failureThreshold: 0.01,
31
- * failureThresholdType: 'percent',
32
- * });
33
- * ```
34
- */
35
- toMatchImageSnapshot(options?: Partial<MatcherOptions>): Promise<T>;
36
- }
37
- interface AsymmetricMatchers {
38
- toMatchImageSnapshot(options?: Partial<MatcherOptions>): void;
39
- }
40
- }
41
-
42
- /**
43
- * Setup blazediff matchers for Vitest
44
- *
45
- * @example
46
- * ```typescript
47
- * // In your vitest setup file or test file
48
- * import { setupBlazediffMatchers } from '@blazediff/vitest';
49
- * setupBlazediffMatchers();
50
- *
51
- * // Or just import the package (auto-setup)
52
- * import '@blazediff/vitest';
53
- * ```
54
- */
55
- declare function setupBlazediffMatchers(): void;
56
-
57
- export { setupBlazediffMatchers as default, setupBlazediffMatchers };