MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / buildRequestBody

Function buildRequestBody

packages/testing/src/index.ts:88–107  ·  view source on GitHub ↗
(event: RunJobBody["event"], job: RunJobBody["job"])

Source from the content-addressed store, hash-verified

86};
87
88const 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
109export const createJobTester =
110 (vi: typeof vitestVi) =>

Callers 1

createJobTesterFunction · 0.85

Calls 1

randomMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…