From 0cb17f80863f27762534d42e714a9c2842ead12a Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Sat, 2 May 2026 16:32:10 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20build:=20add=20missing=20adfree=20field?= =?UTF-8?q?=20to=20ResolveCosmetics=20test=20mock=20=F0=9F=94=A7=20(#3816)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Commit `4d5b7c0` added `adfree: boolean` as a required field to `UserMeResponseSchema` in `ApiSchemas.ts`, but did not update the mock object in `tests/ResolveCosmetics.test.ts`. This caused `tsc --noEmit` to fail with a type overlap error, breaking the production build. **Fix:** Add `adfree: false` to the `player` mock inside `makeUserMe()` in the test file. ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin --- tests/ResolveCosmetics.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ResolveCosmetics.test.ts b/tests/ResolveCosmetics.test.ts index 5b9697d30..24d988afb 100644 --- a/tests/ResolveCosmetics.test.ts +++ b/tests/ResolveCosmetics.test.ts @@ -18,6 +18,7 @@ function makeUserMe(flares: string[] = []): UserMeResponse { user: {}, player: { publicId: "test", + adfree: false, flares, achievements: { singleplayerMap: [] }, },