Closed
Description
Describe the bug
There is a test which shows that initialising a router can be done by pushing a path. We use dynamic imports to lazy load our routes. In combination, this results that the initial route is not set at all.
vue-testing-library/src/__tests__/vue-router.js
Lines 29 to 31 in d628f36
To Reproduce
Change the following line to
{path: '/about', component: () => import('./components/Router/About.vue')},
and run the tests.
Expected behavior
I expected that to work right out of the box or with help of waitFor or something... But I did not manage to get it working.