Closed ritchieanesco closed 3 years ago
After some digging around the router.goto
seems to be working as expected. Push states are being updated, to do this i just logged out the {$router.path}
on the routes widget, unfortunately the page is just not reflecting the change.
I'm not familar with @testing-library/svelte
. Trying to use router.goto()
in the simple app working great. Could you provide minimal example with testing-library for me(repo or zip)?
@AlexxNB i've attached a zip replicating the issue. Thanks for taking the time to look into this.
fixed in v.0.5.5
Description When using version 0.4.6 I was able to use
router.goto
to navigate to the home page to setup each of my tests due to router state persisting between test. With the update to 0.5.3router.goto
has stopped working.Example
Test file:
Routes component:
tinro version: 0.5.3 svelte version: 3.31.2