|
|
@@ -48,16 +48,6 @@ const Wrapper = ({ children }: { children: React.ReactNode }) => {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-// // Mock cn工具函数
|
|
|
-// jest.mock('@/utils/cn', () => ({
|
|
|
-// cn: (...inputs: any[]) => inputs.join(' ')
|
|
|
-// }))
|
|
|
-
|
|
|
-// // Mock platform工具
|
|
|
-// jest.mock('@/utils/platform', () => ({
|
|
|
-// isWeapp: () => false
|
|
|
-// }))
|
|
|
-
|
|
|
// Mock Dialog组件
|
|
|
jest.mock('@/components/ui/dialog', () => ({
|
|
|
Dialog: ({ open, children }: any) => open ? <div data-testid="dialog">{children}</div> : null,
|