Skip to main content
Module

x/python/test/bun_compat.js

🐍 Python interpreter bindings for Deno and Bun.
Latest
File
import { describe, test } from "bun:test";
globalThis.DenoTestCompat = function (name, fn) { const isGroup = (fn + "").includes("(t)"); if (isGroup) { describe(name, async () => { await fn({ step: async (name, fn) => { await test(name, fn); }, }); }); } else { test(name, async () => { await fn(); }); }};