@chromatic-com/vitest 0.0.8-c85de0f-20260520085428 → 0.0.8

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/dist/plugin.js CHANGED
@@ -4188,26 +4188,20 @@ function createCommands(options) {
4188
4188
  pseudoClassIds
4189
4189
  };
4190
4190
  }
4191
- await writeTestResult(
4192
- {
4193
- outputDir: resolve(context.project.vitest.config.root, options.outputDirectory),
4194
- pageUrl: context.page.url(),
4195
- titlePath: getNames(entity)
4196
- },
4197
- snapshotBuffers,
4198
- archive,
4199
- // Remove undefined options with stringify/parse
4200
- JSON.parse(JSON.stringify({
4201
- delay: testOptions.delay ?? options.delay,
4202
- diffIncludeAntiAliasing: testOptions.diffIncludeAntiAliasing ?? options.diffIncludeAntiAliasing,
4203
- diffThreshold: testOptions.diffThreshold ?? options.diffThreshold,
4204
- forcedColors: testOptions.forcedColors ?? options.forcedColors,
4205
- pauseAnimationAtEnd: testOptions.pauseAnimationAtEnd ?? options.pauseAnimationAtEnd,
4206
- prefersReducedMotion: testOptions.prefersReducedMotion ?? options.prefersReducedMotion,
4207
- cropToViewport: testOptions.cropToViewport ?? options.cropToViewport,
4208
- ignoreSelectors: testOptions.ignoreSelectors ?? options.ignoreSelectors
4209
- }))
4210
- );
4191
+ await writeTestResult({
4192
+ outputDir: resolve(context.project.vitest.config.root, options.outputDirectory),
4193
+ pageUrl: context.page.url(),
4194
+ titlePath: getNames(entity)
4195
+ }, snapshotBuffers, archive, {
4196
+ delay: testOptions.delay ?? options.delay,
4197
+ diffIncludeAntiAliasing: testOptions.diffIncludeAntiAliasing ?? options.diffIncludeAntiAliasing,
4198
+ diffThreshold: testOptions.diffThreshold ?? options.diffThreshold,
4199
+ forcedColors: testOptions.forcedColors ?? options.forcedColors,
4200
+ pauseAnimationAtEnd: testOptions.pauseAnimationAtEnd ?? options.pauseAnimationAtEnd,
4201
+ prefersReducedMotion: testOptions.prefersReducedMotion ?? options.prefersReducedMotion,
4202
+ cropToViewport: testOptions.cropToViewport ?? options.cropToViewport,
4203
+ ignoreSelectors: testOptions.ignoreSelectors ?? options.ignoreSelectors
4204
+ });
4211
4205
  },
4212
4206
  /**
4213
4207
  * Clear test state without writing test results.
package/dist/setupFile.js CHANGED
@@ -143,7 +143,6 @@ beforeEach(async ({ task }) => {
143
143
  task.meta.__chromatic_isRegistered = true;
144
144
  task.meta.__chromatic_isTakeSnapshotCalled = false;
145
145
  task.meta.__chromatic_options ||= {};
146
- task.meta.__chromatic_options.disableAutoSnapshot ??= options.disableAutoSnapshot;
147
146
  await commands3.__chromatic_interceptFetch(task.id);
148
147
  return /* @__PURE__ */ __name(async function beforeEachCleanup() {
149
148
  const { __chromatic_isTakeSnapshotCalled: isTakeSnapshotCalled, __chromatic_pendingTakeSnapshots: pendingTakeSnapshots, __chromatic_isRegistered: isRegistered } = task.meta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chromatic-com/vitest",
3
- "version": "0.0.8-c85de0f-20260520085428",
3
+ "version": "0.0.8",
4
4
  "description": "Chromatic Visual Regression Testing for Vitest",
5
5
  "repository": {
6
6
  "type": "git",