1 line
8.3 KiB
JSON
1 line
8.3 KiB
JSON
{"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/e2e/globalSetup.ts":{"path":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/e2e/globalSetup.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":24},"end":{"line":12,"column":48}},"14":{"start":{"line":13,"column":19},"end":{"line":13,"column":38}},"15":{"start":{"line":14,"column":20},"end":{"line":14,"column":46}},"16":{"start":{"line":15,"column":15},"end":{"line":15,"column":44}},"17":{"start":{"line":17,"column":4},"end":{"line":23,"column":7}},"18":{"start":{"line":18,"column":23},"end":{"line":18,"column":61}},"19":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"20":{"start":{"line":20,"column":12},"end":{"line":20,"column":42}},"21":{"start":{"line":22,"column":8},"end":{"line":22,"column":40}},"22":{"start":{"line":25,"column":0},"end":{"line":25,"column":36}},"23":{"start":{"line":27,"column":4},"end":{"line":36,"column":7}},"24":{"start":{"line":28,"column":24},"end":{"line":28,"column":31}},"25":{"start":{"line":29,"column":28},"end":{"line":29,"column":142}},"26":{"start":{"line":30,"column":25},"end":{"line":30,"column":52}},"27":{"start":{"line":31,"column":8},"end":{"line":31,"column":49}},"28":{"start":{"line":32,"column":8},"end":{"line":35,"column":9}},"29":{"start":{"line":33,"column":12},"end":{"line":33,"column":72}},"30":{"start":{"line":34,"column":12},"end":{"line":34,"column":83}},"31":{"start":{"line":38,"column":0},"end":{"line":38,"column":35}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"customGlobalSetup","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":26}},"loc":{"start":{"line":16,"column":29},"end":{"line":24,"column":1}},"line":16},"8":{"name":"(anonymous_8)","decl":{"start":{"line":17,"column":43},"end":{"line":17,"column":44}},"loc":{"start":{"line":17,"column":56},"end":{"line":23,"column":5}},"line":17},"9":{"name":"downloadTestButlerAPK","decl":{"start":{"line":26,"column":9},"end":{"line":26,"column":30}},"loc":{"start":{"line":26,"column":33},"end":{"line":37,"column":1}},"line":26},"10":{"name":"(anonymous_10)","decl":{"start":{"line":27,"column":43},"end":{"line":27,"column":44}},"loc":{"start":{"line":27,"column":56},"end":{"line":36,"column":5}},"line":27}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},{"start":{"line":19,"column":8},"end":{"line":21,"column":9}}],"line":19},"6":{"loc":{"start":{"line":32,"column":8},"end":{"line":35,"column":9}},"type":"if","locations":[{"start":{"line":32,"column":8},"end":{"line":35,"column":9}},{"start":{"line":32,"column":8},"end":{"line":35,"column":9}}],"line":32}},"s":{"0":1,"1":5,"2":0,"3":2,"4":5,"5":5,"6":0,"7":0,"8":0,"9":0,"10":7,"11":2,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":0,"30":0,"31":1},"f":{"0":2,"1":5,"2":0,"3":2,"4":5,"5":0,"6":7,"7":1,"8":1,"9":1,"10":1},"b":{"0":[1,1,1],"1":[5,0],"2":[2,2],"3":[2,5],"4":[2,2],"5":[1,0],"6":[0,1]},"inputSourceMap":{"file":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/e2e/globalSetup.ts","mappings":";;;;;;;;;;;AAAA,iDAAyC;AAEzC,uCAAiD;AAEjD,+CAAgD;AAChD,6CAAiD;AAEjD,SAA8B,iBAAiB;;QAC7C,MAAM,MAAM,GAAG,MAAM,IAAA,yBAAa,GAAE,CAAC;QACrC,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE;YAC7C,MAAM,qBAAqB,EAAE,CAAC;SAC/B;QAED,MAAM,IAAA,kBAAW,GAAE,CAAC;IACtB,CAAC;CAAA;AAPD,oCAOC;AAED,SAAe,qBAAqB;;QAClC,MAAM,OAAO,GAAG,OAAO,CAAC;QACxB,MAAM,WAAW,GAAG,0EAA0E,OAAO,oBAAoB,OAAO,MAAM,CAAC;QACvI,MAAM,QAAQ,GAAG,2BAA2B,CAAC;QAE7C,MAAM,IAAA,oBAAS,EAAC,OAAO,CAAC,CAAC;QACzB,IAAI,CAAC,CAAC,MAAM,IAAA,qBAAU,EAAC,QAAQ,CAAC,CAAC,EAAE;YACjC,OAAO,CAAC,GAAG,CAAC,kCAAkC,OAAO,KAAK,CAAC,CAAC;YAC5D,IAAA,wBAAQ,EAAC,cAAc,QAAQ,IAAI,WAAW,EAAE,CAAC,CAAC;SACnD;IACH,CAAC;CAAA;AAED,MAAM,CAAC,OAAO,GAAG,iBAAiB,CAAC","names":[],"sources":["/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/e2e/globalSetup.ts"],"sourcesContent":["import { execSync } from 'child_process';\n\nimport { pathExists, ensureDir } from 'fs-extra';\n\nimport { resolveConfig } from 'detox/internals';\nimport { globalSetup } from 'detox/runners/jest';\n\nexport default async function customGlobalSetup() {\n const config = await resolveConfig();\n if (config.device.type === 'android.emulator') {\n await downloadTestButlerAPK();\n }\n\n await globalSetup();\n}\n\nasync function downloadTestButlerAPK() {\n const version = '2.2.1';\n const artifactUrl = `https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/${version}/test-butler-app-${version}.apk`;\n const filePath = `cache/test-butler-app.apk`;\n\n await ensureDir('cache');\n if (!(await pathExists(filePath))) {\n console.log(`\\nDownloading Test-Butler APK v${version}...`);\n execSync(`curl -f -o ${filePath} ${artifactUrl}`);\n }\n}\n\nmodule.exports = customGlobalSetup;\n"],"version":3},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5cf17fac192d2bc7f6c950beca029711552341cd","contentHash":"5390e62deb3096f3a69db0c1f30b3fe5907eaffa51885205d3bfe5279cecab03"}} |