chore: fix ci (#4404)

This commit is contained in:
Donny Wang 2024-09-14 17:27:25 +08:00 committed by GitHub
parent d99cad35d7
commit b8a4fba78c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -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',

View File

@ -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', () => {