aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/buffer.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'integration/bunjs-only-snippets/buffer.test.js')
-rw-r--r--integration/bunjs-only-snippets/buffer.test.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/integration/bunjs-only-snippets/buffer.test.js b/integration/bunjs-only-snippets/buffer.test.js
index cbe204e63..dd5327ca3 100644
--- a/integration/bunjs-only-snippets/buffer.test.js
+++ b/integration/bunjs-only-snippets/buffer.test.js
@@ -1,5 +1,9 @@
import { gc } from "bun";
-import { describe, it, expect } from "bun:test";
+import { describe, it, expect, beforeEach, afterEach } from "bun:test";
+import { gc } from "./gc";
+
+beforeEach(() => gc());
+afterEach(() => gc());
it("buffer", () => {
var buf = new Buffer(20);