Function setFetchFn

  • Overwrite the internal fetch function with your own. Typically for use in Node.js and Jest.

    Parameters

    • fetchFn: any

    Returns void

    Example

    const { getVenue } = require("@mappedin/mappedin-js/lib/node/index");
    setFetchFn(require("node-fetch-commonjs"));