File size: 445 Bytes
488aedf
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { describe, it, expect } from "bun:test";
import { ensureNodeFetchNoTimeouts } from "./node-fetch-compat.js";

describe("ensureNodeFetchNoTimeouts", () => {
  it("is a safe no-op under Bun (never imports undici)", async () => {
    await expect(ensureNodeFetchNoTimeouts()).resolves.toBeUndefined();
    // idempotent — second call must not throw either
    await expect(ensureNodeFetchNoTimeouts()).resolves.toBeUndefined();
  });
});