diff --git a/docs/src/test-components-js.md b/docs/src/test-components-js.md index b8e18ee412..7d733230e8 100644 --- a/docs/src/test-components-js.md +++ b/docs/src/test-components-js.md @@ -263,7 +263,7 @@ Then test the component via testing the story: ```js title="input-media.test.spec.tsx" test('changes the image', async ({ mount }) => { - let mediaSelected: string; + let mediaSelected: string | null = null; const component = await mount(