You should use require('/shared/test/unit/mocks/mock_navigator_moz_mobile_connections.js'); instead, requireApp() is not needed here.