Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

310 B
Raw Blame
import type { Location } from "metabase/router";

export const createMockLocation = (opts?: Partial<Location>): Location => {
  return {
    pathname: "/",
    search: "",
    hash: "",
    state: undefined,
    key: "", // can be null at runtime but the history typings type it as string
    ...opts,
  };
};