Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-01-08 16:24:42 +01:00
parent abeba2b11f
commit b1e1cb5252
2 changed files with 3 additions and 3 deletions
@@ -96,13 +96,13 @@ paths:
`;
const requestInterceptor = (req: any) => req;
const supportedSubmitMethods = ['get', 'post', 'put', 'delete'];
const supportedSubmitMethods = ['get', 'post', 'put', 'delete'] as const;
const { findByRole, getByRole, getByLabelText } = await renderInTestApp(
<OpenApiDefinition
definition={definition}
requestInterceptor={requestInterceptor}
supportedSubmitMethods={supportedSubmitMethods}
supportedSubmitMethods={supportedSubmitMethods as any}
/>,
);
@@ -43,7 +43,7 @@ export const OpenApiDefinitionWidget = (
<Suspense fallback={<Progress />}>
<LazyOpenApiDefinition
{...props}
supportedSubmitMethods={validSubmitMethods}
supportedSubmitMethods={validSubmitMethods as any}
/>
</Suspense>
);