The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
import type {
InviteInfo,
Locale,
SetupState,
SubscribeInfo,
UserInfo,
} from "metabase/redux/store";
export const createMockLocale = (opts?: Partial<Locale>): Locale => ({
name: "English",
code: "en",
...opts,
});
export const createMockUserInfo = (opts?: Partial<UserInfo>): UserInfo => ({
first_name: "Test",
last_name: "Testy",
email: "[email protected]",
site_name: "Epic Team",
password: "",
password_confirm: "",
...opts,
});
export const createMockInviteInfo = (
opts?: Partial<InviteInfo>,
): InviteInfo => ({
first_name: "Test",
last_name: "Testy",
email: "[email protected]",
...opts,
});
export const createMockSubscribeInfo = (
opts?: Partial<SubscribeInfo>,
): SubscribeInfo => ({
email: "[email protected]",
...opts,
});
export const createMockSetupState = (
opts?: Partial<SetupState>,
): SetupState => ({
step: "welcome",
isEmbeddingUseCase: false,
isLocaleLoaded: false,
isTrackingAllowed: true,
isAiConfigRequested: false,
...opts,
});