releaseMeta.ts 1007 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {ProjectFixture} from 'sentry-fixture/project';
  2. import type {ReleaseMeta} from 'sentry/types/release';
  3. export function ReleaseMetaFixture(params: Partial<ReleaseMeta> = {}): ReleaseMeta {
  4. const project = ProjectFixture();
  5. return {
  6. version: 'sentry-android-shop@1.2.0',
  7. versionInfo: {
  8. package: 'sentry-android-shop',
  9. version: {
  10. raw: '1.2.0',
  11. major: 1,
  12. minor: 2,
  13. patch: 0,
  14. pre: null,
  15. buildCode: null,
  16. components: 3,
  17. },
  18. description: '1.2.0',
  19. buildHash: null,
  20. },
  21. projects: [
  22. {
  23. id: Number(project.id),
  24. slug: project.slug,
  25. name: project.name,
  26. newGroups: 0,
  27. platform: project.platform ?? 'android',
  28. platforms: ['javascript'],
  29. },
  30. ],
  31. newGroups: 0,
  32. deployCount: 1,
  33. commitCount: 2,
  34. released: '2020-03-23T01:02:30Z',
  35. commitFilesChanged: 17,
  36. releaseFileCount: 1662,
  37. isArtifactBundle: false,
  38. ...params,
  39. };
  40. }