@blazediff/vitest 1.1.16 → 1.1.18
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 +2 -22
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@blazediff/vitest)
|
|
6
|
-
[](https://www.npmjs.com/package/@blazediff/vitest)
|
|
5
|
+
[](https://www.npmjs.com/package/@blazediff/vitest)
|
|
6
|
+
[](https://www.npmjs.com/package/@blazediff/vitest)
|
|
7
7
|
|
|
8
8
|
</div>
|
|
9
9
|
|
|
@@ -117,12 +117,6 @@ Vitest matcher for image snapshot comparison.
|
|
|
117
117
|
<td>true</td>
|
|
118
118
|
<td>Run comparison in worker thread for better performance</td>
|
|
119
119
|
</tr>
|
|
120
|
-
<tr>
|
|
121
|
-
<td><code>outputFormat</code></td>
|
|
122
|
-
<td>'png' | 'html'</td>
|
|
123
|
-
<td>'png'</td>
|
|
124
|
-
<td>Diff output format (<code>core-native</code> only). Use <code>'html'</code> for an interactive interpret report with detected change regions, classification, and severity</td>
|
|
125
|
-
</tr>
|
|
126
120
|
</table>
|
|
127
121
|
|
|
128
122
|
See [@blazediff/matcher](https://www.npmjs.com/package/@blazediff/matcher) for full options documentation.
|
|
@@ -190,20 +184,6 @@ await expect(screenshot).toMatchImageSnapshot({
|
|
|
190
184
|
});
|
|
191
185
|
```
|
|
192
186
|
|
|
193
|
-
### HTML Interpret Report
|
|
194
|
-
|
|
195
|
-
When using `core-native`, set `outputFormat: 'html'` to generate an interactive HTML report on failure instead of a plain diff image. The report includes detected change regions with classification, severity, and spatial analysis.
|
|
196
|
-
|
|
197
|
-
```typescript
|
|
198
|
-
await expect('/path/to/image.png').toMatchImageSnapshot({
|
|
199
|
-
method: 'core-native',
|
|
200
|
-
outputFormat: 'html',
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
// On failure, the diff file will be .html instead of .png
|
|
204
|
-
// e.g., __snapshots__/test-name.diff.html
|
|
205
|
-
```
|
|
206
|
-
|
|
207
187
|
### Custom Thresholds
|
|
208
188
|
|
|
209
189
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazediff/vitest",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
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": "
|
|
36
|
+
"@blazediff/matcher": "2.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^24.3.0",
|