project.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import {OrganizationFixture} from 'sentry-fixture/organization';
  2. import {TeamFixture} from 'sentry-fixture/team';
  3. import type {Project} from 'sentry/types/project';
  4. export function ProjectFixture(params: Partial<Project> = {}): Project {
  5. const team = TeamFixture();
  6. return {
  7. id: '2',
  8. slug: 'project-slug',
  9. name: 'Project Name',
  10. access: ['project:read'],
  11. allowedDomains: ['*'],
  12. hasAccess: true,
  13. isMember: true,
  14. isBookmarked: false,
  15. team,
  16. teams: [],
  17. environments: [],
  18. features: [],
  19. eventProcessing: {
  20. symbolicationDegraded: false,
  21. },
  22. dateCreated: new Date().toISOString(),
  23. digestsMaxDelay: 0,
  24. digestsMinDelay: 0,
  25. dynamicSamplingBiases: null,
  26. firstEvent: null,
  27. firstTransactionEvent: false,
  28. groupingAutoUpdate: false,
  29. groupingConfig: '',
  30. hasCustomMetrics: false,
  31. hasFeedbacks: false,
  32. hasNewFeedbacks: false,
  33. hasMinifiedStackTrace: false,
  34. hasProfiles: false,
  35. hasReplays: false,
  36. hasSessions: false,
  37. hasMonitors: false,
  38. isInternal: false,
  39. organization: OrganizationFixture(),
  40. plugins: [],
  41. processingIssues: 0,
  42. relayPiiConfig: '',
  43. relayCustomMetricCardinalityLimit: null,
  44. resolveAge: 0,
  45. safeFields: [],
  46. scrapeJavaScript: true,
  47. scrubIPAddresses: false,
  48. sensitiveFields: [],
  49. subjectTemplate: '',
  50. verifySSL: false,
  51. ...params,
  52. };
  53. }