title: 'Route with name 'something' does not exist' vue-router console.warn when using vue-test-utils
body: <p>I'm making test codes for vue.js component which uses vue-router using vue-test-utils.</p>
  <p>Here are codes related to this.</p>
  <pre><code>const Routes = [{
    ...
   }, ...
   {
    ...,
    path: '/transfers',
    name: 'transfers',
    redirect: '/transfers/all',
    ...
   },...]
  </code></pre>
  <p><strong>Routes.ts</strong></p>
  <pre><code>export default class Transfers extends Vue {
    ...
    @Watch('$route', { immediate: true })
    async setDataResource (value: any) {
      const routeParams = value.params
      const paramKey: string = Object.keys(routeParams)[0]
      ...
    }
  }
  </code></pre>
  <p><strong>Transfers.vue</strong></p>
  <pre><code>import { shallowMount, createLocalVue } from '@vue/test-utils'
  import VueRouter from 'vue-router'
  import Routes from '../../router/Routes'
  
  const localVue = createLocalVue()
  localVue.use(VueRouter)
  ...
  const router = new VueRouter({ Routes })
  
  ...
  describe('Elements', () =&gt; {
    const div = document.createElement('div')
    div.id = 'root'
    document.body.appendChild(div)
  
    router.push({ name: 'transfers', params: { processing: 'all' } })
  
    const wrapper = shallowMount(Transfers, {
      localVue,
      store,
      router,
      attachTo: '#root'
    })
    ...
  })
  
  </code></pre>
  <p><strong>transfers.test.js</strong></p>
  <p>What I wanna do is to test watch on $route with params.</p>
  <p>It works well with 'params: { processing: 'all' }' but</p>
  <pre><code>console.warn
        [vue-router] Route with name 'transfers' does not exist
  </code></pre>
  <p>appears.</p>
  <p>I can use router.push({ name: 'transfers' }) in .vue, so I think the name is registered to routes normally. But only for testing, 'Route with name 'transfers'' seems to not found.</p>
  <p>The Routes.ts file originally didn't use name options for routes, but I added it since I can push params to router only using name option. I mean, name options are not necessary for our project!</p>
  <p>So my question is,</p>
  <ul>
  <li>Is there any way to push params to router in test code, without using name option in route?</li>
  <li>If I should use name option, why does this warning only appears when testing?</li>
  </ul>