#8647 fix vitest warnings #1467

Merged
jon merged 91 commits from 8647_fix_warnings into dev 2025-04-16 11:18:11 +00:00
2 changed files with 8 additions and 3 deletions
Showing only changes of commit bc3334529b - Show all commits

View File

@ -190,7 +190,7 @@ const searchModule = () => {
<template>
<QList padding class="column-max-width">
<template v-if="$props.source === 'main'">
<template v-if="$route?.matched[1]?.name === 'Dashboard'">
<template v-if="route?.matched[1]?.name === 'Dashboard'">

elimino el $route porque salian warnings

elimino el $route porque salian warnings
<QItem class="q-pb-md">
<VnInput
v-model="search"
@ -271,7 +271,7 @@ const searchModule = () => {
</template>
<template v-for="item in items" :key="item.name">
<template v-if="item.name === $route?.matched[1]?.name">
<template v-if="item.name === route?.matched[1]?.name">

preferiria usar v-else, que dices?

preferiria usar v-else, que dices?
<QItem class="header">
<QItemSection avatar v-if="item.icon">
<QIcon :name="item.icon" />

View File

@ -91,12 +91,17 @@ export function createWrapper(component, options) {
global: {
plugins: [i18n, pinia],
directives: {
shortcut: {},
shortcut: () => vi.fn(),
},
},
stubs: ['router-link'],
mocks: {
t: (tKey) => tKey,
$t: (tKey) => tKey,
$route: () => vi.fn(),
},
directives: {
shortcut: () => vi.fn(),
},
};