chore: fix ci (#4404)
This commit is contained in:
parent
d99cad35d7
commit
b8a4fba78c
@ -1,8 +1,9 @@
|
|||||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
||||||
|
|
||||||
import { ModalApi } from '../modal-api'; // 假设 ModalApi 位于同一目录
|
|
||||||
import type { ModalState } from '../modal';
|
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', () => {
|
vi.mock('@vben-core/shared/store', () => {
|
||||||
return {
|
return {
|
||||||
isFunction: (fn: any) => typeof fn === 'function',
|
isFunction: (fn: any) => typeof fn === 'function',
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
import { describe, expect, it, vi } from 'vitest';
|
|
||||||
|
|
||||||
import { generateMenus } from '../generate-menus'; // 替换为您的实际路径
|
|
||||||
import {
|
import {
|
||||||
createRouter,
|
createRouter,
|
||||||
createWebHistory,
|
createWebHistory,
|
||||||
@ -8,6 +5,10 @@ import {
|
|||||||
type RouteRecordRaw,
|
type RouteRecordRaw,
|
||||||
} from 'vue-router';
|
} 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
|
// Nested route setup to test child inclusion and hideChildrenInMenu functionality
|
||||||
|
|
||||||
describe('generateMenus', () => {
|
describe('generateMenus', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user