userFeedback.tsx 579 B

123456789101112131415161718192021
  1. import {EventFixture} from 'sentry-fixture/event';
  2. import {GroupFixture} from 'sentry-fixture/group';
  3. import {UserFixture} from 'sentry-fixture/user';
  4. import type {UserReport} from 'sentry/types';
  5. export function UserFeedbackFixture(params: Partial<UserReport> = {}): UserReport {
  6. const event = EventFixture();
  7. return {
  8. id: '123',
  9. name: 'Lyn',
  10. email: 'lyn@sentry.io',
  11. comments: 'Something bad happened',
  12. dateCreated: '2018-12-20T00:00:00.000Z',
  13. issue: GroupFixture(),
  14. eventID: event.id,
  15. event,
  16. user: UserFixture(),
  17. ...params,
  18. };
  19. }