1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- import {EntryException} from 'sentry/types';
- import type {ReplayError, ReplayRecord} from 'sentry/views/replays/types';
- import type {Replay} from './replay';
- type SimpleStub<T = any> = () => T;
- type OverridableStub<Params = any, Result = Params> = (
- params?: Partial<Params>
- ) => Result;
- type OverridableVariadicStub<Params = any, Result = Params> = (
- ...params: Array<Partial<Params>>
- ) => Result;
- type OverridableStubList<Params = any, Result = Params> = (
- params?: Array<Partial<Params>>
- ) => Result[];
- type TestStubFixtures = {
- ApiToken: OverridableStub;
- AvailableNotificationActions: OverridableStub;
- CodeOwner: OverridableStub;
- Config: OverridableStub;
- Dashboard: OverridableVariadicStub;
- DocIntegration: OverridableStub;
- Environments: SimpleStub;
- Event: OverridableStub;
- EventEntry: OverridableStub;
- EventEntryDebugMeta: OverridableStub;
- EventEntryExceptionGroup: SimpleStub<EntryException>;
- EventStacktraceException: OverridableStub;
- Frame: OverridableStub;
- GitHubIntegration: OverridableStub;
- Group: OverridableStub;
- Incident: OverridableStub;
- Member: OverridableStub;
- Members: OverridableStubList;
- MetricRule: OverridableStub;
- OrgRoleList: OverridableStub;
- Organization: OverridableStub;
- PageFilters: OverridableStub;
- PlatformExternalIssue: OverridableStub;
- Plugin: OverridableStub;
- Plugins: OverridableStubList;
- Project: OverridableStub;
- ProjectAlertRule: OverridableStub;
- ProjectKeys: OverridableStubList;
- Release: (params?: any, healthParams?: any) => any;
- Replay: typeof Replay;
- ReplayError: OverridableStub<ReplayError>;
- ReplayRecord: OverridableStub<ReplayRecord>;
- Repository: OverridableStub;
- SentryApp: OverridableStub;
- SentryAppComponent: OverridableStub;
- SentryAppComponentAsync: OverridableStub;
- SentryAppComponentDependent: OverridableStub;
- SentryAppInstallation: OverridableStub;
- Team: OverridableStub;
- User: OverridableStub;
- Widget: OverridableVariadicStub;
- // TODO: These need propertly typed still
- // Widget(queries = {...DEFAULT_QUERIES}, options)
- // Dashboard(widgets = DEFAULT_WIDGETS, props = {})
- };
- export default TestStubFixtures;
|