@blazediff/vitest 1.1.26 → 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
|
@@ -106,10 +106,10 @@ Vitest matcher for image snapshot comparison.
|
|
|
106
106
|
<td>Force update snapshots</td>
|
|
107
107
|
</tr>
|
|
108
108
|
<tr>
|
|
109
|
-
<td><code>
|
|
110
|
-
<td>
|
|
111
|
-
<td
|
|
112
|
-
<td>
|
|
109
|
+
<td><code>diff</code></td>
|
|
110
|
+
<td>object</td>
|
|
111
|
+
<td>-</td>
|
|
112
|
+
<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>
|
|
113
113
|
</tr>
|
|
114
114
|
<tr>
|
|
115
115
|
<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/vitest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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": "3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^24.3.0",
|