userFeedback.tsx 547 B

123456789101112131415161718192021
  1. import {Event} from 'sentry-fixture/event';
  2. import {Group} from 'sentry-fixture/group';
  3. import {User} from 'sentry-fixture/user';
  4. import type {UserReport as TUserReport} from 'sentry/types';
  5. export function UserFeedback(params: Partial<TUserReport> = {}): TUserReport {
  6. const event = Event();
  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: Group(),
  14. eventID: event.id,
  15. event,
  16. user: User(),
  17. ...params,
  18. };
  19. }