vitest-plugin-vis 1.3.0 → 1.3.1

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.
@@ -32,7 +32,7 @@ export function imageSnapshotMatcher(commands) {
32
32
  }
33
33
  return;
34
34
  }
35
- if (server.config.snapshotOptions.updateSnapshot === 'all') {
35
+ if (server.config.snapshotOptions.updateSnapshot === 'all' && !options?.expectToFail) {
36
36
  await writeSnapshot(commands, info.baselinePath, resultImage);
37
37
  return;
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-plugin-vis",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Vitest visual testing plugin",
5
5
  "keywords": [
6
6
  "image-snapshot",
@@ -54,7 +54,7 @@ export function imageSnapshotMatcher(
54
54
  }
55
55
  return
56
56
  }
57
- if (server.config.snapshotOptions.updateSnapshot === 'all') {
57
+ if (server.config.snapshotOptions.updateSnapshot === 'all' && !options?.expectToFail) {
58
58
  await writeSnapshot(commands, info.baselinePath, resultImage)
59
59
  return
60
60
  }