Skip to content

Commit

Permalink
chore: auto-import @vue/test-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
letwebdev committed Feb 29, 2024
1 parent 00beb60 commit ff3da5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@
"ToolboxComponent": true,
"TooltipComponent": true,
"graphic": true,
"use": true
"use": true,
"mount": true
}
}
3 changes: 3 additions & 0 deletions auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ declare global {
const mapStores: typeof import('pinia')['mapStores']
const mapWritableState: typeof import('pinia')['mapWritableState']
const markRaw: typeof import('vue')['markRaw']
const mount: typeof import('@vue/test-utils')['mount']
const nextTick: typeof import('vue')['nextTick']
const onActivated: typeof import('vue')['onActivated']
const onBeforeMount: typeof import('vue')['onBeforeMount']
Expand Down Expand Up @@ -412,6 +413,7 @@ declare module 'vue' {
readonly mapStores: UnwrapRef<typeof import('pinia')['mapStores']>
readonly mapWritableState: UnwrapRef<typeof import('pinia')['mapWritableState']>
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
readonly mount: UnwrapRef<typeof import('@vue/test-utils')['mount']>
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
Expand Down Expand Up @@ -736,6 +738,7 @@ declare module '@vue/runtime-core' {
readonly mapStores: UnwrapRef<typeof import('pinia')['mapStores']>
readonly mapWritableState: UnwrapRef<typeof import('pinia')['mapWritableState']>
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
readonly mount: UnwrapRef<typeof import('@vue/test-utils')['mount']>
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default defineConfig({
"@vueuse/core",
"pinia",
"vitest",
{
"@vue/test-utils": ["mount"],
},
{
"echarts/core": ["use", "graphic"],
"echarts/renderers": ["CanvasRenderer"],
Expand Down

0 comments on commit ff3da5f

Please sign in to comment.