diff --git a/packages/react/src/context/navMenu.tsx b/packages/react/src/context/navMenu.tsx index 3396ff6c..9955ddd1 100644 --- a/packages/react/src/context/navMenu.tsx +++ b/packages/react/src/context/navMenu.tsx @@ -22,12 +22,7 @@ export interface NavMenuContextValue { onToggle: () => void } -export const NavMenuContext = createContext({ - triggerRef: null, - menuRef: null, - expanded: false, - onToggle: () => {}, -}) +export const NavMenuContext = createContext(null) export function NavMenu(props: PropsWithChildren) { const triggerRef = useRef(null) diff --git a/tests/react/context/navMenu.test.tsx b/tests/react/context/navMenu.test.tsx index 462cef77..de4d5380 100644 --- a/tests/react/context/navMenu.test.tsx +++ b/tests/react/context/navMenu.test.tsx @@ -30,8 +30,6 @@ describe('navMenu & useNavMenuContext', () => { ) } - afterEach(cleanup) - test('should export a NavMenu', () => { render() expect(screen.getByText(/trigger/i)).toBeTruthy()