Skip to content

Commit

Permalink
test: remove noisy console error for MenuItem (#1768)
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker authored Dec 20, 2024
1 parent 897963b commit 2b0bb38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/MenuItem/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<MenuItem>
<a href="/foo" onClick={onClick}>
<a href="#foo" onClick={onClick}>
Foo
</a>
</MenuItem>
Expand Down

0 comments on commit 2b0bb38

Please sign in to comment.