@blazediff/jest 1.1.8 → 1.1.10

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/README.md CHANGED
@@ -13,7 +13,7 @@ Jest matcher for visual regression testing with blazediff. Powered by @blazediff
13
13
 
14
14
  - **Native Jest matcher**: `toMatchImageSnapshot()` extends Jest's expect
15
15
  - **Snapshot state tracking**: Jest reports accurate snapshot counts (added/matched/updated/failed)
16
- - **Multiple comparison algorithms**: `core`, `bin`, `ssim`, `msssim`, `hitchhikers-ssim`, `gmsd`
16
+ - **Multiple comparison algorithms**: `core`, `core-native`, `ssim`, `msssim`, `hitchhikers-ssim`, `gmsd`
17
17
  - **Auto-setup**: Imports and registers automatically
18
18
  - **Update mode**: Works with Jest's `-u` flag
19
19
  - **TypeScript support**: Full type definitions included
@@ -72,7 +72,7 @@ Jest matcher for image snapshot comparison.
72
72
  </tr>
73
73
  <tr>
74
74
  <td><code>method</code></td>
75
- <td>'core' | 'bin' | 'ssim' | 'msssim' | 'hitchhikers-ssim' | 'gmsd'</td>
75
+ <td>'core' | 'core-native' | 'ssim' | 'msssim' | 'hitchhikers-ssim' | 'gmsd'</td>
76
76
  <td>'core'</td>
77
77
  <td>Comparison algorithm to use</td>
78
78
  </tr>
@@ -110,7 +110,7 @@ Jest matcher for image snapshot comparison.
110
110
  <td><code>threshold</code></td>
111
111
  <td>number</td>
112
112
  <td>0.1</td>
113
- <td>Color difference threshold (0-1) for core/bin methods</td>
113
+ <td>Color difference threshold (0-1) for core/core-native methods</td>
114
114
  </tr>
115
115
  <tr>
116
116
  <td><code>runInWorker</code></td>
@@ -143,7 +143,7 @@ it('renders correctly', async () => {
143
143
  ```typescript
144
144
  // Fast Rust-native comparison (file paths only)
145
145
  await expect('/path/to/image.png').toMatchImageSnapshot({
146
- method: 'bin',
146
+ method: 'core-native',
147
147
  });
148
148
 
149
149
  // Pure JavaScript comparison
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ declare global {
16
16
  * ```typescript
17
17
  * // Compare file path
18
18
  * await expect('/path/to/screenshot.png').toMatchImageSnapshot({
19
- * method: 'bin',
19
+ * method: 'core-native',
20
20
  * failureThreshold: 100,
21
21
  * failureThresholdType: 'pixel',
22
22
  * });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/jest",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Jest matcher for visual regression testing with blazediff",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -33,14 +33,12 @@
33
33
  "homepage": "https://blazediff.dev",
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@blazediff/matcher": "1.3.0"
36
+ "@blazediff/matcher": "1.4.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/jest": "^29.5.14",
40
- "@types/jest-image-snapshot": "^6.4.1",
41
40
  "@types/node": "^24.3.0",
42
41
  "jest": "^29.7.0",
43
- "jest-image-snapshot": "^6.5.1",
44
42
  "ts-jest": "^29.2.6",
45
43
  "tsup": "8.5.0",
46
44
  "typescript": "5.9.2"