From 695c7465138c01315be1ee11b2cad4b27530920d Mon Sep 17 00:00:00 2001 From: Simon Ihmig Date: Mon, 9 Dec 2024 19:59:07 +0100 Subject: [PATCH] Fix type error on stable Stable is broken when running pnpm without the lockfile: ``` packages/macros/tests/babel/helpers.ts:85:15 - error TS2454: Variable 'mode' is used before being assigned. ``` Applying same fix as on `main`: https://github.com/embroider-build/embroider/pull/2184/commits/31ed2c223e446b744962d96ab58712199551fd37 --- packages/macros/tests/babel/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/macros/tests/babel/helpers.ts b/packages/macros/tests/babel/helpers.ts index 1d69bca37..ceebfa66b 100644 --- a/packages/macros/tests/babel/helpers.ts +++ b/packages/macros/tests/babel/helpers.ts @@ -79,7 +79,7 @@ disabledTest.failing = disabledTest; export function allModes(fn: CreateModeTests): CreateTests { return function createTests(transform: Transform) { - for (let mode of ['build-time', 'run-time']) { + for (const mode of ['build-time', 'run-time']) { describe(mode, function () { function applyMode(macrosConfig: MacrosConfig) { if (mode === 'run-time') {