@blazediff/jest 1.1.17 → 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 +0 -20
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -118,12 +118,6 @@ Jest matcher for image snapshot comparison.
|
|
|
118
118
|
<td>true</td>
|
|
119
119
|
<td>Run comparison in worker thread for better performance</td>
|
|
120
120
|
</tr>
|
|
121
|
-
<tr>
|
|
122
|
-
<td><code>outputFormat</code></td>
|
|
123
|
-
<td>'png' | 'html'</td>
|
|
124
|
-
<td>'png'</td>
|
|
125
|
-
<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>
|
|
126
|
-
</tr>
|
|
127
121
|
</table>
|
|
128
122
|
|
|
129
123
|
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/jest",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
4
4
|
"description": "Jest 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/jest": "^29.5.14",
|