zcode-daili / src /runtime /node-fetch-compat.test.ts
bolikoto's picture
chore(zcode): 升级上游至 v4.8.5 并保留多账号兼容
488aedf verified
Raw History Blame Contribute Delete
445 Bytes
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();
});
});