diff --git a/tests/router.test.tsx b/tests/router.test.tsx index edb0bba..7269f4b 100644 --- a/tests/router.test.tsx +++ b/tests/router.test.tsx @@ -44,6 +44,8 @@ describe('HashRouter', () => { '**': () =>
, }); + mountTest(); + await router.navigate(''); expect(window.location.hash).toBe('');