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

Function createApp

runtime_tests/tests/bun/index.test.ts:8–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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