frontend-test-utils: fix implicit any types for TypeScript 6 compatibility

Add explicit type annotations to `.map()` callback parameters in
`renderInTestApp` to prevent TS7006 errors with TypeScript 6, and
update `@mswjs/interceptors` to 0.39.8 within the existing version
range.

Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
This commit is contained in:
Fredrik Adelöw
2026-04-15 22:02:18 +02:00
parent 5f1d32b415
commit 9279ea8366
3 changed files with 23 additions and 16 deletions
@@ -137,20 +137,22 @@ const appPluginOverride = appPlugin.withOverrides({
coreExtensionData.reactElement(
<nav>
<ul>
{inputs.items.map((item, index) => {
const { icon, title, routeRef } = item.get(
NavItemBlueprint.dataRefs.target,
);
{inputs.items.map(
(item: (typeof inputs.items)[number], index: number) => {
const { icon, title, routeRef } = item.get(
NavItemBlueprint.dataRefs.target,
);
return (
<NavItem
key={index}
icon={icon}
title={title}
routeRef={routeRef}
/>
);
})}
return (
<NavItem
key={index}
icon={icon}
title={title}
routeRef={routeRef}
/>
);
},
)}
</ul>
</nav>,
),