eventIdQueryResult.ts 472 B

123456789101112131415161718192021
  1. import {EventFixture} from 'sentry-fixture/event';
  2. import type {EventIdResponse} from 'sentry/types';
  3. export function EventIdQueryResultFixture(params = {}): EventIdResponse {
  4. const event = EventFixture({
  5. metadata: {
  6. type: 'event type',
  7. value: 'event description',
  8. },
  9. });
  10. return {
  11. organizationSlug: 'org-slug',
  12. projectSlug: 'project-slug',
  13. groupId: event.groupID || '',
  14. eventId: event.eventID,
  15. event,
  16. ...params,
  17. };
  18. }