Skip to content

Commit

Permalink
Dynamic import of bun:test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Jun 20, 2024
1 parent be1ace8 commit 949f6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shims/bun.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { test } from "bun:test";
import type { TestSubject, WrappedTestOptions } from "../mod.ts";

export async function wrappedTest(
name: string,
testFn: TestSubject,
options: WrappedTestOptions,
) {
const { test } = await import("bun:test");
return await test(name, async () => {
// Adapt the context here
let testFnPromise = undefined;
Expand Down

0 comments on commit 949f6b0

Please sign in to comment.