I have configured an app for code-push, it works well except for jest tests. It fails in rendering app for this error:
TypeError: Cannot read property 'CheckFrequency' of undefined
at Object.<anonymous> (app/index.js:7:66)
at Object.<anonymous> (index.ios.js:5:12)
at Object.<anonymous> (__tests__/index.ios.js:4:12)
in this line:
const codePushOptions = { checkFrequency: codePush.CheckFrequency.MANUAL };
The test code is:
import App from '../index.ios';
it('renders correctly', () => {
const tree = renderer.create(
<App />,
);
});