feat: Add test overrides (#5642)

* feat: Add test overrides

* feat: add more func to test with

* test: add tests for posthog store

* fix: only init once

* fix: only init once

* test: fix
This commit is contained in:
Mutasem Aldmour
2023-03-24 15:57:22 +01:00
committed by GitHub
parent 78c9707fa7
commit 696e43a919
5 changed files with 215 additions and 7 deletions

View File

@@ -71,6 +71,11 @@ declare global {
analytics?: {
track(event: string, proeprties?: ITelemetryTrackProperties): void;
};
featureFlags?: {
getAll: () => FeatureFlags;
getVariant: (name: string) => string | boolean | undefined;
override: (name: string, value: string) => void;
};
}
}
@@ -579,6 +584,7 @@ export interface IUserResponse {
firstName?: string;
lastName?: string;
email?: string;
createdAt?: string;
globalRole?: {
name: IRole;
id: string;
@@ -599,7 +605,6 @@ export interface IUser extends IUserResponse {
isOwner: boolean;
inviteAcceptUrl?: string;
fullName?: string;
createdAt?: string;
}
export interface IVersionNotificationSettings {