2021-08-12 15:04:37 +02:00
|
|
|
import FakeFeatureStrategiesStore from './fake-feature-strategies-store';
|
|
|
|
import FakeClientInstanceStore from './fake-client-instance-store';
|
|
|
|
import FakeClientApplicationsStore from './fake-client-applications-store';
|
|
|
|
import FakeFeatureToggleStore from './fake-feature-toggle-store';
|
|
|
|
import FakeTagStore from './fake-tag-store';
|
|
|
|
import FakeTagTypeStore from './fake-tag-type-store';
|
|
|
|
import FakeEventStore from './fake-event-store';
|
|
|
|
import FakeContextFieldStore from './fake-context-field-store';
|
|
|
|
import FakeSettingStore from './fake-setting-store';
|
|
|
|
import FakeAddonStore from './fake-addon-store';
|
|
|
|
import FakeProjectStore from './fake-project-store';
|
|
|
|
import FakeUserStore from './fake-user-store';
|
|
|
|
import FakeAccessStore from './fake-access-store';
|
|
|
|
import FakeUserFeedbackStore from './fake-user-feedback-store';
|
|
|
|
import FakeFeatureTagStore from './fake-feature-tag-store';
|
|
|
|
import FakeEnvironmentStore from './fake-environment-store';
|
|
|
|
import FakeStrategiesStore from './fake-strategies-store';
|
|
|
|
import { IUnleashStores } from '../../lib/types';
|
|
|
|
import FakeSessionStore from './fake-session-store';
|
|
|
|
import FakeFeatureEnvironmentStore from './fake-feature-environment-store';
|
|
|
|
import FakeApiTokenStore from './fake-api-token-store';
|
|
|
|
import FakeFeatureTypeStore from './fake-feature-type-store';
|
|
|
|
import FakeResetTokenStore from './fake-reset-token-store';
|
2021-09-13 10:23:57 +02:00
|
|
|
import FakeFeatureToggleClientStore from './fake-feature-toggle-client-store';
|
2021-10-08 10:09:22 +02:00
|
|
|
import FakeClientMetricsStoreV2 from './fake-client-metrics-store-v2';
|
2021-11-09 11:52:02 +01:00
|
|
|
import FakeUserSplashStore from './fake-user-splash-store';
|
2022-01-13 11:14:17 +01:00
|
|
|
import FakeRoleStore from './fake-role-store';
|
2022-03-29 14:59:14 +02:00
|
|
|
import FakeSegmentStore from './fake-segment-store';
|
2022-07-21 16:23:56 +02:00
|
|
|
import FakeGroupStore from './fake-group-store';
|
2022-09-16 09:54:27 +02:00
|
|
|
import FakePatStore from './fake-pat-store';
|
2022-09-14 14:29:12 +02:00
|
|
|
import FakePublicSignupStore from './fake-public-signup-store';
|
2021-08-12 15:04:37 +02:00
|
|
|
|
|
|
|
const createStores: () => IUnleashStores = () => {
|
|
|
|
const db = {
|
|
|
|
select: () => ({
|
|
|
|
from: () => Promise.resolve(),
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
|
|
|
|
return {
|
|
|
|
db,
|
|
|
|
clientApplicationsStore: new FakeClientApplicationsStore(),
|
2021-10-08 10:09:22 +02:00
|
|
|
clientMetricsStoreV2: new FakeClientMetricsStoreV2(),
|
2021-08-12 15:04:37 +02:00
|
|
|
clientInstanceStore: new FakeClientInstanceStore(),
|
|
|
|
featureToggleStore: new FakeFeatureToggleStore(),
|
2021-09-13 10:23:57 +02:00
|
|
|
featureToggleClientStore: new FakeFeatureToggleClientStore(),
|
2021-08-12 15:04:37 +02:00
|
|
|
tagStore: new FakeTagStore(),
|
|
|
|
tagTypeStore: new FakeTagTypeStore(),
|
|
|
|
eventStore: new FakeEventStore(),
|
|
|
|
strategyStore: new FakeStrategiesStore(),
|
|
|
|
contextFieldStore: new FakeContextFieldStore(),
|
|
|
|
settingStore: new FakeSettingStore(),
|
|
|
|
addonStore: new FakeAddonStore(),
|
|
|
|
projectStore: new FakeProjectStore(),
|
|
|
|
userStore: new FakeUserStore(),
|
|
|
|
accessStore: new FakeAccessStore(),
|
|
|
|
userFeedbackStore: new FakeUserFeedbackStore(),
|
|
|
|
featureStrategiesStore: new FakeFeatureStrategiesStore(),
|
|
|
|
featureTagStore: new FakeFeatureTagStore(),
|
|
|
|
environmentStore: new FakeEnvironmentStore(),
|
|
|
|
featureEnvironmentStore: new FakeFeatureEnvironmentStore(),
|
|
|
|
apiTokenStore: new FakeApiTokenStore(),
|
|
|
|
featureTypeStore: new FakeFeatureTypeStore(),
|
|
|
|
resetTokenStore: new FakeResetTokenStore(),
|
|
|
|
sessionStore: new FakeSessionStore(),
|
2021-11-09 11:52:02 +01:00
|
|
|
userSplashStore: new FakeUserSplashStore(),
|
2022-01-13 11:14:17 +01:00
|
|
|
roleStore: new FakeRoleStore(),
|
2022-03-29 14:59:14 +02:00
|
|
|
segmentStore: new FakeSegmentStore(),
|
2022-07-21 16:23:56 +02:00
|
|
|
groupStore: new FakeGroupStore(),
|
2022-09-16 09:54:27 +02:00
|
|
|
patStore: new FakePatStore(),
|
2022-09-14 14:29:12 +02:00
|
|
|
publicSignupTokenStore: new FakePublicSignupStore(),
|
2021-08-12 15:04:37 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default createStores;
|