Update setup.js

This commit is contained in:
Marcos Rodriguez Vélez 2024-10-23 01:20:59 -04:00 committed by GitHub
parent 417a153707
commit 88a22ffa68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,13 +163,9 @@ jest.mock('react-native-ios-context-menu', () => {
return {};
});
export default {
detect: jest.fn(() =>
Promise.resolve({
values: ['mocked-qr-code'],
}),
),
};
jest.mock('rn-qr-generator', () => ({
detect: jest.fn(() => Promise.resolve({ values: ['mocked-qr-code'] })),
}));
jest.mock('react-native-haptic-feedback', () => {
return {