| 3 | import type {DetailedProject, Project} from 'sentry/types/project'; |
| 4 | |
| 5 | export function ProjectFixture(params: Partial<Project> = {}): Project { |
| 6 | const team = TeamFixture(); |
| 7 | return { |
| 8 | id: '2', |
| 9 | slug: 'project-slug', |
| 10 | name: 'Project Name', |
| 11 | access: ['project:read'], |
| 12 | hasAccess: true, |
| 13 | isMember: true, |
| 14 | isBookmarked: false, |
| 15 | platforms: [], |
| 16 | team, |
| 17 | teams: [], |
| 18 | environments: [], |
| 19 | features: [], |
| 20 | dateCreated: new Date().toISOString(), |
| 21 | firstEvent: null, |
| 22 | firstTransactionEvent: false, |
| 23 | hasFeedbacks: false, |
| 24 | hasNewFeedbacks: false, |
| 25 | hasMinifiedStackTrace: false, |
| 26 | hasProfiles: false, |
| 27 | hasReplays: false, |
| 28 | hasFlags: false, |
| 29 | hasTraceMetrics: false, |
| 30 | hasSessions: false, |
| 31 | hasMonitors: false, |
| 32 | hasLogs: false, |
| 33 | hasInsightsHttp: false, |
| 34 | hasInsightsDb: false, |
| 35 | hasInsightsAssets: false, |
| 36 | hasInsightsAppStart: false, |
| 37 | hasInsightsScreenLoad: false, |
| 38 | hasInsightsVitals: false, |
| 39 | hasInsightsCaches: false, |
| 40 | hasInsightsQueues: false, |
| 41 | hasInsightsAgentMonitoring: false, |
| 42 | hasInsightsMCP: false, |
| 43 | ...params, |
| 44 | }; |
| 45 | } |
| 46 | |
| 47 | export function DetailedProjectFixture( |
| 48 | params: Partial<DetailedProject> = {} |