kinetex - v1.0.0-rc.1
    Preparing search index...

    Function setRuntime

    • Override the cached runtime value.

      Use this in test environments where the detected runtime may be incorrect (e.g., a Node.js test that should behave as a Cloudflare Worker), or when running inside a VM/isolate with dynamic globalThis behavior.

      Pass null to restore auto-detection.

      Parameters

      Returns void

      import { setRuntime } from "kinetex";
      setRuntime("cloudflare-workers"); // test CF behavior
      setRuntime(null); // restore detection