it('should use a correct base', () => {
dom.reconfigure({ url: 'https://esm.dev' })
- console.log(location.host, location.pathname)
createWebHashHistory()
// starts with a `/`
expect(createWebHistory).toHaveBeenCalledWith('/#')
) {
const pathParser = tokensToParser(...args)
const options = args[1] || {}
- // console.log(pathParser.re)
expect(
pathParser.re
.toString()
if (++calls > 1000) throw new Error('1000 calls')
next(to.path)
})
- console.log('dev', __DEV__)
const { router } = await newRouter({
history,
routes: [{ path: '/foo', component: components.Home, beforeEnter }],