@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 +14 -20
- package/dist/setupFile.js +0 -1
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -4188,26 +4188,20 @@ function createCommands(options) {
|
|
|
4188
4188
|
pseudoClassIds
|
|
4189
4189
|
};
|
|
4190
4190
|
}
|
|
4191
|
-
await writeTestResult(
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
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;
|