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

Function createApp

runtime_tests/tests/node/index.test.ts:7–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { Hono } from "hono";
6
7function createApp() {
8 const client = new TriggerClient({
9 id: "wrangler-test",
10 apiKey: "tr_dev_test-api-key",
11 apiUrl: "http://localhost:3030",
12 });
13
14 const app = new Hono();
15
16 client.defineJob({
17 id: "wrangler-job",
18 name: "Wrangler Job",
19 version: "1.0.0",
20 trigger: invokeTrigger(),
21 run: async (payload, io, ctx) => {},
22 });
23
24 app.use("/api/trigger", createMiddleware(client));
25
26 return app;
27}
28
29describe("Node", () => {
30 const app = createApp();

Callers 1

index.test.tsFile · 0.70

Calls 4

defineJobMethod · 0.95
invokeTriggerFunction · 0.90
createMiddlewareFunction · 0.90
useMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…