(event: RunJobBody["event"], job: RunJobBody["job"])
| 86 | }; |
| 87 | |
| 88 | const buildRequestBody = (event: RunJobBody["event"], job: RunJobBody["job"]): RunJobBody => ({ |
| 89 | event, |
| 90 | job, |
| 91 | run: { |
| 92 | id: String(Math.random()), |
| 93 | isTest: false, |
| 94 | isRetry: false, |
| 95 | startedAt: new Date(), |
| 96 | }, |
| 97 | environment: { |
| 98 | id: String(Math.random()), |
| 99 | slug: "test-env", |
| 100 | type: "DEVELOPMENT", |
| 101 | }, |
| 102 | organization: { |
| 103 | id: String(Math.random()), |
| 104 | title: "Test Org", |
| 105 | slug: "test-org", |
| 106 | }, |
| 107 | }); |
| 108 | |
| 109 | export const createJobTester = |
| 110 | (vi: typeof vitestVi) => |
no test coverage detected
searching dependent graphs…