"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require('path');
require("jest");
const index_1 = require("../index");
const test_help_js_1 = require("@weex-cli/utils/lib/test/test-help.js");
async function testIos() {
    const testHelp = new test_help_js_1.default(path.join(__dirname, '../../'));
    const iosRunner = new index_1.IosRunner({
        jsBundleEntry: testHelp.getTestConfigByKey('jsBundleEntry'),
        projectPath: testHelp.getTestConfigByKey('ios.projectPath'),
        deviceId: testHelp.getTestConfigByKey('ios.deviceId'),
        applicationId: testHelp.getTestConfigByKey('ios.applicationId'),
        jsBundleFolderPath: testHelp.getTestConfigByKey('jsBundleFolderPath'),
    });
    await iosRunner.run();
    setTimeout(() => {
        console.log('Will dispose');
        iosRunner.dispose();
    }, 30 * 1000);
}
testIos().catch(e => {
    console.error('Test run ios ERROR: ', e);
});
