diff --git a/packages/@core/ui-kit/popup-ui/src/modal/__tests__/modal-api.test.ts b/packages/@core/ui-kit/popup-ui/src/modal/__tests__/modal-api.test.ts index 90eb634d2a2..41ca2ad14c9 100644 --- a/packages/@core/ui-kit/popup-ui/src/modal/__tests__/modal-api.test.ts +++ b/packages/@core/ui-kit/popup-ui/src/modal/__tests__/modal-api.test.ts @@ -1,8 +1,9 @@ -import { beforeEach, describe, expect, it, vi } from 'vitest'; - -import { ModalApi } from '../modal-api'; // 假设 ModalApi 位于同一目录 import type { ModalState } from '../modal'; +import { beforeEach, describe, expect, it, vi } from 'vitest'; +// 假设 ModalApi 位于同一目录 +import { ModalApi } from '../modal-api'; + vi.mock('@vben-core/shared/store', () => { return { isFunction: (fn: any) => typeof fn === 'function', diff --git a/packages/utils/src/helpers/__tests__/generate-menus.test.ts b/packages/utils/src/helpers/__tests__/generate-menus.test.ts index d8ffc0bb77c..7e967b80579 100644 --- a/packages/utils/src/helpers/__tests__/generate-menus.test.ts +++ b/packages/utils/src/helpers/__tests__/generate-menus.test.ts @@ -1,6 +1,3 @@ -import { describe, expect, it, vi } from 'vitest'; - -import { generateMenus } from '../generate-menus'; // 替换为您的实际路径 import { createRouter, createWebHistory, @@ -8,6 +5,10 @@ import { type RouteRecordRaw, } from 'vue-router'; +import { describe, expect, it, vi } from 'vitest'; +// 替换为您的实际路径 +import { generateMenus } from '../generate-menus'; + // Nested route setup to test child inclusion and hideChildrenInMenu functionality describe('generateMenus', () => {