Using Jest to mock named imports
Solution 1:
You have to mock the module 'expo'
jest.mock('expo', ()=>({
Permissions: {
askAsync: jest.fn()
}
}))
You have to mock the module 'expo'
jest.mock('expo', ()=>({
Permissions: {
askAsync: jest.fn()
}
}))