Skip to content

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

357 B
Raw Blame
import type { FileUpload } from "metabase/redux/store/upload";

export const createMockUploadState = (uploads = {}) => {
  return { ...uploads };
};

export const createMockUpload = (props?: Partial<FileUpload>): FileUpload => {
  return {
    id: Date.now(),
    name: "test.csv",
    status: "in-progress",
    collectionId: "root",
    ...props,
  };
};