Skip to content

Commit

Permalink
Fix type error on stable
Browse files Browse the repository at this point in the history
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`: 31ed2c2
  • Loading branch information
simonihmig committed Dec 9, 2024
1 parent 18d14eb commit 695c746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/macros/tests/babel/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 695c746

Please sign in to comment.