From 2b0bb381baf326bf3008b0c77a739feddd3f4dc2 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 20 Dec 2024 09:06:27 -0600 Subject: [PATCH] test: remove noisy console error for MenuItem (#1768) --- packages/react/src/components/MenuItem/index.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/MenuItem/index.test.tsx b/packages/react/src/components/MenuItem/index.test.tsx index 62978e8ce..0822dc789 100644 --- a/packages/react/src/components/MenuItem/index.test.tsx +++ b/packages/react/src/components/MenuItem/index.test.tsx @@ -9,9 +9,11 @@ const user = userEvent.setup(); test('clicks first direct child link given a click', async () => { const onClick = sinon.spy(); + // Note: Using a hash link instead of a url link because jsdom doesn't correctly + // support navigation and throws a noisy console error we don't care about render( - + Foo