diff --git a/packages/cli/src/lib/platforms.ts b/packages/cli/src/lib/platforms.ts index 1cc061fbd..146217487 100644 --- a/packages/cli/src/lib/platforms.ts +++ b/packages/cli/src/lib/platforms.ts @@ -6,7 +6,7 @@ import { levenshtein } from "./fuzzy.js"; -/** Full list of valid Sentry platform identifiers (112 from backend + "other"). */ +/** Full list of valid Sentry platform identifiers from the backend, plus "other". */ export const VALID_PLATFORMS = [ "android", "apple", @@ -73,12 +73,15 @@ export const VALID_PLATFORMS = [ "node-cloudflare-pages", "node-cloudflare-workers", "node-connect", + "node-eve", "node-express", "node-fastify", + "node-flue", "node-gcpfunctions", "node-hapi", "node-hono", "node-koa", + "node-mastra", "node-nestjs", "other", "php", diff --git a/packages/cli/test/commands/project/create.test.ts b/packages/cli/test/commands/project/create.test.ts index 20ca056ba..43b44b6cf 100644 --- a/packages/cli/test/commands/project/create.test.ts +++ b/packages/cli/test/commands/project/create.test.ts @@ -192,17 +192,22 @@ describe("project create", () => { }); }); - test("passes the paired platform to createProject", async () => { + test.each([ + "python-flask", + "node-mastra", + "node-flue", + "node-eve", + ])("passes the paired platform %s to createProject", async (platform) => { const { context } = createMockContext(); const func = await createCommand.loader(); - await func.call(context, { json: false }, "my-app:python-flask"); + await func.call(context, { json: false }, `my-app:${platform}`); expect(createProjectWithDsnSpy).toHaveBeenCalledWith( "acme-corp", "engineering", { name: "my-app", - platform: "python-flask", + platform, } ); });