Skip to content

Commit 55a40e4

Browse files
fix(init): restore initialValues for performanceMonitoring in multiselect
The migration from clack to WizardUI accidentally dropped the initialValues parameter that pre-selected Tracing in the feature picker.
1 parent 411da3e commit 55a40e4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/init/interactive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ async function handleMultiSelect(
143143
...(hint ? { hint } : {}),
144144
};
145145
}),
146+
initialValues: optional.filter((f) => f === "performanceMonitoring"),
146147
required: false,
147148
});
148149

test/lib/init/interactive.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ describe("handleMultiSelect", () => {
297297
"performanceMonitoring",
298298
"sourceMaps",
299299
]);
300-
expect(multiselectCall?.initialValues).toBeUndefined();
300+
expect(multiselectCall?.initialValues).toEqual(["performanceMonitoring"]);
301301
});
302302
});
303303

0 commit comments

Comments
 (0)