This commit is contained in:
imeepos 2026-01-28 16:07:20 +08:00
parent ffed84a90c
commit ef629713eb
1 changed files with 14 additions and 2 deletions

View File

@ -69,7 +69,13 @@ jest.mock('@/components/icon/checkMark', () => ({
}))
// Mock components
jest.mock('@/components/drawer/PointsDrawer', () => 'PointsDrawer')
jest.mock('@/components/drawer/PointsDrawer', () => {
const React = require('react')
return {
__esModule: true,
default: () => null,
}
})
jest.mock('@/components/ui/dropdown', () => {
const React = require('react')
return {
@ -79,7 +85,13 @@ jest.mock('@/components/ui/dropdown', () => {
},
}
})
jest.mock('@/components/GradientText', () => 'GradientText')
jest.mock('@/components/GradientText', () => {
const React = require('react')
return {
__esModule: true,
default: ({ children }: any) => children,
}
})
// Mock expo-router
jest.mock('expo-router', () => ({