+++ /dev/null
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`RouterLink displays a link with a string prop 1`] = `"<a href=\\"/home\\">a link</a>"`;
-
-exports[`RouterLink displays a link with an object with path prop 1`] = `"<a href=\\"/home\\">a link</a>"`;
+++ /dev/null
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`RouterView displays current route component 1`] = `"<div>Home</div>"`;
-
-exports[`RouterView displays deeply nested views 1`] = `
-"<div>
- <h2>Nested</h2>
- <div>
- <h2>Nested</h2>
- <div>Foo</div>
- </div>
-</div>"
-`;
-
-exports[`RouterView displays named views 1`] = `"<div>Foo</div>"`;
-
-exports[`RouterView displays nested views 1`] = `
-"<div>
- <h2>Nested</h2>
- <div>Foo</div>
-</div>"
-`;
-
-exports[`RouterView displays nothing when route is unmatched 1`] = `""`;
/**
* @jest-environment jsdom
*/
-// NOTE: these tests only run when using jest `yarn jest --watch`
import RouterLink from '../src/components/Link'
import {
START_LOCATION_NORMALIZED,
MatcherLocation,
RouteLocationNormalized,
} from '../src/types'
-import { mount } from '@vue/test-utils'
import { createMemoryHistory } from '../src'
const locations: Record<
/**
* @jest-environment jsdom
*/
-// NOTE: these tests only run when using jest `yarn jest --watch`
import RouterView from '../src/components/View'
import { components } from './utils'
import {
START_LOCATION_NORMALIZED,
RouteLocationNormalized,
} from '../src/types'
-import { mount } from '@vue/test-utils'
const routes: Record<string, RouteLocationNormalized> = {
root: {