From 949f6b0b36dce9b3ab7ad5289bc9e391dd1acb6b Mon Sep 17 00:00:00 2001 From: Hexagon Date: Thu, 20 Jun 2024 20:32:41 +0000 Subject: [PATCH] Dynamic import of bun:test --- shims/bun.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shims/bun.ts b/shims/bun.ts index 8edfac5..a78ad9d 100644 --- a/shims/bun.ts +++ b/shims/bun.ts @@ -1,4 +1,3 @@ -import { test } from "bun:test"; import type { TestSubject, WrappedTestOptions } from "../mod.ts"; export async function wrappedTest( @@ -6,6 +5,7 @@ export async function wrappedTest( testFn: TestSubject, options: WrappedTestOptions, ) { + const { test } = await import("bun:test"); return await test(name, async () => { // Adapt the context here let testFnPromise = undefined;