Vue karma test how to add parameters to an address

recently I intend to use vuecli"s karma+chai+mocha test, but there are places where I need to get address parameters ( http://xxx.xxx.xxx/?id=123), karma and webpack documents have been read several times and still can"t find a solution to the problem

Nov.30,2021

now the method is to build a route by yourself

import router from '@/router'
const localVue = createLocalVue()
localVue.use(VueRouter)
const wrapper = mount(App, {
  localVue,
  router,
})

then jump

wrapper.vm.$router.push({
  path: '/guess',
  query: {
    uid:'123'
  }
})

however, the error related to $ref will still be reported when entering for the first time. The parameter still has no
and cannot be taken without routing. A urlRoot parameter is found in karma, but then /? id=xxx is automatically added so that the page undefined reports an error. Has any boss studied these problems

?
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bfc5-4ef40.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bfc5-4ef40.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?