@blazediff/jest 1.1.25 → 2.0.0
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 +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -107,10 +107,10 @@ Jest matcher for image snapshot comparison.
|
|
|
107
107
|
<td>Force update snapshots</td>
|
|
108
108
|
</tr>
|
|
109
109
|
<tr>
|
|
110
|
-
<td><code>
|
|
111
|
-
<td>
|
|
112
|
-
<td
|
|
113
|
-
<td>
|
|
110
|
+
<td><code>diff</code></td>
|
|
111
|
+
<td>object</td>
|
|
112
|
+
<td>-</td>
|
|
113
|
+
<td>Options for core, core-wasm and core-native, such as <code>{ threshold: 0.1, antialiasing: true }</code>. <code>ssim</code> and <code>gmsd</code> hold the options of those methods. See @blazediff/matcher</td>
|
|
114
114
|
</tr>
|
|
115
115
|
<tr>
|
|
116
116
|
<td><code>runInWorker</code></td>
|
|
@@ -141,7 +141,7 @@ it('renders correctly', async () => {
|
|
|
141
141
|
### Different Comparison Methods
|
|
142
142
|
|
|
143
143
|
```typescript
|
|
144
|
-
// Fast Rust-native comparison (
|
|
144
|
+
// Fast Rust-native comparison (paths, PNG buffers or raw images)
|
|
145
145
|
await expect('/path/to/image.png').toMatchImageSnapshot({
|
|
146
146
|
method: 'core-native',
|
|
147
147
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazediff/jest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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": "3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/jest": "^29.5.14",
|