From d885108803e19ab7dc2d1ae8f84477974807f0d4 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 6 Nov 2026 23:29:24 +0000 Subject: [PATCH] fix(test): Add feature_id to autofix response fixtures The a47f626 schema regen picked up `feature_id` as a required field on the autofix POST response, matching what the Sentry endpoint now returns. The typecheck and smoke test fixtures still built the old two-field response, so `pnpm typecheck` failed with TS2741 and both validator smoke tests rejected the fixture. Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com> --- test/smoke.test.ts | 2 +- test/typecheck.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/smoke.test.ts b/test/smoke.test.ts index 377cab57..a91f4db0 100644 --- a/test/smoke.test.ts +++ b/test/smoke.test.ts @@ -83,7 +83,7 @@ describe("parseSentryLinkHeader", () => { }); describe("runtime validator entry points", () => { - const response = { run_id: 42, sentry_run_id: "run-42" }; + const response = { run_id: 42, sentry_run_id: "run-42", feature_id: "autofix" }; test("preserves composite request schemas across generator upgrades", () => { const request = { path: { organization_id_or_slug: "example", project_id_or_slug: "project" } }; diff --git a/test/typecheck.ts b/test/typecheck.ts index 9bc11a2b..42f191d0 100644 --- a/test/typecheck.ts +++ b/test/typecheck.ts @@ -33,6 +33,7 @@ import { zAutofixPostResponse } from "../src/zod"; const valibotResponse: InferOutput = { run_id: 1, sentry_run_id: null, + feature_id: "autofix", }; const zodResponse: z.infer = valibotResponse; void zodResponse;