import {User} from './user'; export function Config(params = {}) { return { theme: 'light', user: User(), messages: [], languageCode: 'en', csrfCookieName: 'csrf-test-cookie', superUserCookieName: 'su-test-cookie', features: new Set(), singleOrganization: false, urlPrefix: 'https://sentry-jest-tests.example.com/', needsUpgrade: false, supportEmail: 'support@sentry.io', invitesEnabled: false, privacyUrl: null, termsUrl: null, // Maintain isOnPremise key for backcompat (plugins?). isOnPremise: false, isSelfHosted: false, lastOrganization: null, gravatarBaseUrl: 'https://gravatar.com', dsn: 'test-dsn', userIdentity: { ip_address: '127.0.0.1', email: 'example@example.com', id: '1', isStaff: false, }, isAuthenticated: true, version: { current: '1.0.0-dev', latest: '1.0.0-dev', build: 'test-build', upgradeAvailable: false, }, sentryConfig: { dsn: 'test-dsn', release: '1.0.0.-dev', whitelistUrls: [], }, distPrefix: '', apmSampling: 1, dsn_requests: '', demoMode: false, links: { sentryUrl: 'https://sentry.io', organizationUrl: 'https://foobar.sentry.io', regionUrl: 'https://us.sentry.io', }, ...params, }; }