Files
safe-wallet/apps/mobile/__mocks__/react-native-capture-protection.js
Daniel DimitrovandGitHub f9a59fe142 feat(mobile): add capture screen protection (#6083)
* feat(mobile): add capture screen protection

Disable screen capture on the import private key screen

* tests(mobile): add tests for react-native-capture-protection

* fix(test): test was crashing app

since the test was not in __tests__ folder expo router was trying to load it as a screen.
2025-07-07 12:54:04 +02:00

18 lines
391 B
JavaScript

/* eslint-disable */
// Manual mock for react-native-capture-protection
const mockPrevent = jest.fn()
const mockAllow = jest.fn()
const CaptureProtection = {
prevent: mockPrevent,
allow: mockAllow,
}
// Export the mock object
module.exports = {
CaptureProtection,
// Also export the mock functions so tests can access them
__mockPrevent: mockPrevent,
__mockAllow: mockAllow,
}