From 41b03b5c4c426bd3f2a3c7c6aaf454cee11744f0 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 20 Jun 2022 21:35:22 -0700 Subject: Cleanup tests --- integration/bunjs-only-snippets/buffer.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'integration/bunjs-only-snippets/buffer.test.js') 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); -- cgit v1.2.3