Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/cli/src/lib/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 8 additions & 3 deletions packages/cli/test/commands/project/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
);
});
Expand Down
Loading