Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix ci #4404

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
7 changes: 4 additions & 3 deletions packages/utils/src/helpers/__tests__/generate-menus.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { describe, expect, it, vi } from 'vitest';

import { generateMenus } from '../generate-menus'; // 替换为您的实际路径
import {
createRouter,
createWebHistory,
type Router,
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', () => {
Expand Down