@blazediff/vitest 1.1.8 → 1.1.9
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 +4 -4
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Vitest matcher for visual regression testing with blazediff. Powered by @blazedi
|
|
|
13
13
|
|
|
14
14
|
- **Native Vitest matcher**: `toMatchImageSnapshot()` extends Vitest's expect
|
|
15
15
|
- **Snapshot state tracking**: Vitest reports accurate snapshot counts (added/matched/updated/failed)
|
|
16
|
-
- **Multiple comparison algorithms**: `core`, `
|
|
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 Vitest's `-u` flag
|
|
19
19
|
- **TypeScript support**: Full type definitions included
|
|
@@ -71,7 +71,7 @@ Vitest matcher for image snapshot comparison.
|
|
|
71
71
|
</tr>
|
|
72
72
|
<tr>
|
|
73
73
|
<td><code>method</code></td>
|
|
74
|
-
<td>'core' | '
|
|
74
|
+
<td>'core' | 'core-native' | 'ssim' | 'msssim' | 'hitchhikers-ssim' | 'gmsd'</td>
|
|
75
75
|
<td>'core'</td>
|
|
76
76
|
<td>Comparison algorithm to use</td>
|
|
77
77
|
</tr>
|
|
@@ -109,7 +109,7 @@ Vitest matcher for image snapshot comparison.
|
|
|
109
109
|
<td><code>threshold</code></td>
|
|
110
110
|
<td>number</td>
|
|
111
111
|
<td>0.1</td>
|
|
112
|
-
<td>Color difference threshold (0-1) for core/
|
|
112
|
+
<td>Color difference threshold (0-1) for core/core-native methods</td>
|
|
113
113
|
</tr>
|
|
114
114
|
<tr>
|
|
115
115
|
<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: '
|
|
146
|
+
method: 'core-native',
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
// Pure JavaScript comparison
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazediff/vitest",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
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.3.
|
|
36
|
+
"@blazediff/matcher": "1.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^24.3.0",
|