diff --git a/src/bun.js/test/jest.zig b/src/bun.js/test/jest.zig index 3ae8a89d31ec27..7695b29f928158 100644 --- a/src/bun.js/test/jest.zig +++ b/src/bun.js/test/jest.zig @@ -1172,6 +1172,7 @@ pub const DescribeScope = struct { Jest.runner.?.reportFailure(i + this.test_id_start, source.path.text, tests[i].label, 0, 0, this); i += 1; } + this.tests.clearAndFree(allocator); this.pending_tests.deinit(allocator); return; }