我已经为代码推送配置了一个应用程序,它运行良好,除了开玩笑测试。它无法针对此错误渲染应用程序:
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)
在这一行:
const codePushOptions = { checkFrequency: codePush.CheckFrequency.MANUAL };
测试代码为:
import App from '../index.ios';
it('renders correctly', () => {
const tree = renderer.create(
<App />,
);
});