fix: bug
This commit is contained in:
@@ -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', () => ({
|
||||
|
||||
Reference in New Issue
Block a user