@chromatic-com/vitest 0.1.2 → 0.1.3
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 +10 -2
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -4219,10 +4219,18 @@ var ChromaticReporter = class _ChromaticReporter {
|
|
|
4219
4219
|
if (this.options.builtInReporter !== "default" && this.options.builtInReporter !== "tree") {
|
|
4220
4220
|
return;
|
|
4221
4221
|
}
|
|
4222
|
+
let noSlowTests = true;
|
|
4223
|
+
for (const testCase of testModule.children.allTests()) {
|
|
4224
|
+
if (testCase.diagnostic()?.slow) {
|
|
4225
|
+
noSlowTests = false;
|
|
4226
|
+
break;
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
const indentProjectName = noSlowTests && this.options.builtInReporter === "default";
|
|
4222
4230
|
this.logSnapshots({
|
|
4223
4231
|
count: this.snapshotCountPerEntity.get(testModule.id) ?? 0,
|
|
4224
|
-
indentation:
|
|
4225
|
-
projectName:
|
|
4232
|
+
indentation: indentProjectName ? 3 : 2,
|
|
4233
|
+
projectName: indentProjectName && testModule.project.name
|
|
4226
4234
|
});
|
|
4227
4235
|
}
|
|
4228
4236
|
onTestRunEnd() {
|