fix: bug
This commit is contained in:
parent
ffed84a90c
commit
ef629713eb
|
|
@ -69,7 +69,13 @@ jest.mock('@/components/icon/checkMark', () => ({
|
||||||
}))
|
}))
|
||||||
|
|
||||||
// Mock components
|
// 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', () => {
|
jest.mock('@/components/ui/dropdown', () => {
|
||||||
const React = require('react')
|
const React = require('react')
|
||||||
return {
|
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
|
// Mock expo-router
|
||||||
jest.mock('expo-router', () => ({
|
jest.mock('expo-router', () => ({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue