Compare commits

...

2 Commits

Author SHA1 Message Date
Meghan Denny
68cfccd19b use bun.Output.Scoped.isVisible() to cache env check 2024-10-02 17:31:18 -07:00
Meghan Denny
823692c353 cli:test: skip printing successes when in debug mode and BUN_DEBUG_jest=1 2024-10-01 14:54:36 -07:00

View File

@@ -175,9 +175,10 @@ pub const CommandLineReporter = struct {
var this: *CommandLineReporter = @fieldParentPtr("callback", cb);
writeTestStatusLine(.pass, &writer);
printTestLine(label, elapsed_ns, parent, false, writer);
if (bun.Environment.isRelease or !Output.Scoped(.jest, false).isVisible()) {
writeTestStatusLine(.pass, &writer);
printTestLine(label, elapsed_ns, parent, false, writer);
}
this.jest.tests.items(.status)[id] = TestRunner.Test.Status.pass;
this.summary.pass += 1;