browserstack-node-sdk 1.50.3 → 1.50.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a10_0x1f11(_0x2ef79a,_0x1fda36){const _0x37af6d=a10_0x37af();return a10_0x1f11=function(_0x1f11e1,_0x23c375){_0x1f11e1=_0x1f11e1-0x1c9;let _0x28b658=_0x37af6d[_0x1f11e1];return _0x28b658;},a10_0x1f11(_0x2ef79a,_0x1fda36);}const a10_0x26a7c4=a10_0x1f11;(function(_0xf2b2e4,_0xd8703){const _0xcd5291=a10_0x1f11,_0x5e3789=_0xf2b2e4();while(!![]){try{const _0x3dcac9=parseInt(_0xcd5291(0x1f7))/0x1+parseInt(_0xcd5291(0x1e7))/0x2*(parseInt(_0xcd5291(0x1d4))/0x3)+-parseInt(_0xcd5291(0x1e3))/0x4+-parseInt(_0xcd5291(0x1d6))/0x5+parseInt(_0xcd5291(0x1f4))/0x6+parseInt(_0xcd5291(0x1e5))/0x7+-parseInt(_0xcd5291(0x1ed))/0x8;if(_0x3dcac9===_0xd8703)break;else _0x5e3789['push'](_0x5e3789['shift']());}catch(_0x145ead){_0x5e3789['push'](_0x5e3789['shift']());}}}(a10_0x37af,0x3a3cb));const {requireModule,modifyCommand,isTrue,markSessionStatus}=require(a10_0x26a7c4(0x1ca)),setKeepAlive=require(a10_0x26a7c4(0x1d2)),cucumberModule=requireModule(a10_0x26a7c4(0x1d1),a10_0x26a7c4(0x1f1)),logger=require(a10_0x26a7c4(0x1e8))['winstonLogger'];modifyCommand(),setKeepAlive();const Before=cucumberModule['Before'],After=cucumberModule[a10_0x26a7c4(0x1cd)],configuration=process[a10_0x26a7c4(0x1e0)][a10_0x26a7c4(0x1dd)];if(configuration!==undefined){const config=JSON[a10_0x26a7c4(0x1cf)](configuration);isTrue(config['skipSessionName'])&&(global[a10_0x26a7c4(0x1e6)]=!![]),global[a10_0x26a7c4(0x1db)]=isTrue(config['skipSessionStatus']),require(a10_0x26a7c4(0x1f3))[a10_0x26a7c4(0x1d8)](config),global['__platformCaps']=config['platformCaps']||{};}global[a10_0x26a7c4(0x1d9)]=0x0;const __setDefaultTimeout=cucumberModule[a10_0x26a7c4(0x1e4)];cucumberModule['setDefaultTimeout']=_0x2bb448=>{const _0x2a3fe3=a10_0x26a7c4,_0x3cc472={'begyy':function(_0x40dca8,_0x17bdf3){return _0x40dca8(_0x17bdf3);}};global[_0x2a3fe3(0x1d9)]=_0x2bb448,_0x3cc472[_0x2a3fe3(0x1ce)](__setDefaultTimeout,_0x2bb448);};const a10_0xf230a1={};a10_0xf230a1[a10_0x26a7c4(0x1cb)]='bstack',Before(a10_0xf230a1,function(){const _0x5e556f=a10_0x26a7c4,_0x2e1908={};_0x2e1908[_0x5e556f(0x1df)]='Inside\x20browserstack\x20Before';const _0x292672=_0x2e1908;logger[_0x5e556f(0x1f6)](_0x292672[_0x5e556f(0x1df)]),global[_0x5e556f(0x1ee)]=[];});const a10_0x1daed8={};a10_0x1daed8[a10_0x26a7c4(0x1cb)]=a10_0x26a7c4(0x1eb),a10_0x1daed8[a10_0x26a7c4(0x1d7)]=0x2710,After(a10_0x1daed8,function(_0x4975fb,_0x4ba87d){const _0xc5acbe=a10_0x26a7c4,_0x41fbd3={'JbMRn':function(_0x4092cb,_0x44b279){return _0x4092cb===_0x44b279;},'urwVO':_0xc5acbe(0x1cc),'YMomK':function(_0x24e1eb,_0x82aa1a,_0x534617,_0x50d91a){return _0x24e1eb(_0x82aa1a,_0x534617,_0x50d91a);},'AKXze':'\x20|\x20','KUMFB':function(_0x6a615d,_0x5ba965,_0x3c1416){return _0x6a615d(_0x5ba965,_0x3c1416);},'uazSn':_0xc5acbe(0x1de),'Kifnk':function(_0x96caa0){return _0x96caa0();},'OuExH':function(_0x36953c,_0x4d78b7){return _0x36953c(_0x4d78b7);},'KZGIe':function(_0x2032cd){return _0x2032cd();},'vhwlE':'Inside\x20browserstack\x20After'};logger[_0xc5acbe(0x1f6)](_0x41fbd3['vhwlE']),new Promise(async(_0x39d6ea,_0x425066)=>{const _0x576129=_0xc5acbe;let _0x582bc2=![];try{await global[_0x576129(0x1e1)]['session_'],_0x582bc2=!![],!global['__skipSessionName']&&await global['__driver']['executeScript'](_0x576129(0x1da)+_0x4975fb['pickle'][_0x576129(0x1cb)]+_0x576129(0x1ec)),_0x41fbd3[_0x576129(0x1c9)](_0x4975fb[_0x576129(0x1e2)][_0x576129(0x1e9)]['toLowerCase'](),_0x41fbd3[_0x576129(0x1d3)])?await _0x41fbd3[_0x576129(0x1f2)](markSessionStatus,global[_0x576129(0x1e1)],_0x41fbd3[_0x576129(0x1d3)],global['__error_messages__']['join'](_0x41fbd3[_0x576129(0x1ea)])):await _0x41fbd3['KUMFB'](markSessionStatus,global[_0x576129(0x1e1)],_0x41fbd3[_0x576129(0x1dc)]);}catch(_0x28bea4){logger[_0x576129(0x1f6)](_0x576129(0x1ef)+_0x28bea4);}if(_0x582bc2)try{await global[_0x576129(0x1e1)][_0x576129(0x1d5)](),_0x41fbd3[_0x576129(0x1f0)](_0x39d6ea);}catch(_0x451c54){logger[_0x576129(0x1f6)](_0x576129(0x1d0)+_0x451c54),_0x41fbd3[_0x576129(0x1f5)](_0x425066,_0x451c54);}else _0x41fbd3[_0x576129(0x1f8)](_0x425066);})['then'](()=>_0x4ba87d());});function a10_0x37af(){const _0x322d33=['JbMRn','../../helpers/helper','name','failed','After','begyy','parse','Error:\x20quiting\x20at\x20After:\x20','cucumber/lib/index.js','../../helpers/setKeepAlive','urwVO','1743kyIfUk','initQuit','2072455JJOVMO','timeout','browserstackAgentV2','__timeout','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','__skipSessionStatus','uazSn','CONFIG','passed','hEbxa','env','__driver','result','1619368VluCLi','setDefaultTimeout','1366596OYstzg','__skipSessionName','1286MagcaP','../../helpers/logger','status','AKXze','bstack','\x22}}','1526824VSgOnD','__error_messages__','Error:\x20setting\x20status\x20at\x20After:\x20','Kifnk','cucumber','YMomK','../../index','2526294kdAyhy','OuExH','debug','258865todRzR','KZGIe'];a10_0x37af=function(){return _0x322d33;};return a10_0x37af();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x126824=a11_0x3e09;(function(_0x2978e7,_0x5102c0){const _0x4a309c=a11_0x3e09,_0x48e9f7=_0x2978e7();while(!![]){try{const _0x3ee3e3=-parseInt(_0x4a309c(0x185))/0x1+parseInt(_0x4a309c(0x182))/0x2+parseInt(_0x4a309c(0x187))/0x3*(-parseInt(_0x4a309c(0x180))/0x4)+parseInt(_0x4a309c(0x188))/0x5*(parseInt(_0x4a309c(0x189))/0x6)+-parseInt(_0x4a309c(0x186))/0x7+parseInt(_0x4a309c(0x181))/0x8*(parseInt(_0x4a309c(0x183))/0x9)+-parseInt(_0x4a309c(0x17e))/0xa;if(_0x3ee3e3===_0x5102c0)break;else _0x48e9f7['push'](_0x48e9f7['shift']());}catch(_0x2ee66a){_0x48e9f7['push'](_0x48e9f7['shift']());}}}(a11_0x9d91,0xcdcdf));const {requireModule}=require(a11_0x126824(0x17d)),constants=require(a11_0x126824(0x17b));function a11_0x3e09(_0x5e0856,_0x13a68a){const _0x9d9118=a11_0x9d91();return a11_0x3e09=function(_0x3e0940,_0x1d6738){_0x3e0940=_0x3e0940-0x179;let _0x1ffeb8=_0x9d9118[_0x3e0940];return _0x1ffeb8;},a11_0x3e09(_0x5e0856,_0x13a68a);}function a11_0x9d91(){const _0x4a12c9=['2636630tQSNKT','cucumber/lib/index.js','12ixYNqz','853032UOYuKy','2636796uwceFv','117okAINm','setDefaultTimeout','312926tfwvFp','8987286cfCRVn','569139TEKuIA','785TTVruI','21708kVhSyb','__timeout','@cucumber/cucumber','../utils/constants','@cucumber/cucumber/lib/index.js','../../helpers/helper'];a11_0x9d91=function(){return _0x4a12c9;};return a11_0x9d91();};let cucumberModule=null;try{cucumberModule=requireModule(a11_0x126824(0x17c),a11_0x126824(0x17a));}catch(a11_0x3142d9){cucumberModule=requireModule(a11_0x126824(0x17f),'cucumber');}cucumberModule[a11_0x126824(0x184)](constants['BSTACK_DELTA']+global[a11_0x126824(0x179)]*0x1);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a12_0x550224=a12_0x393f;(function(_0x28a364,_0x2e0d8b){const _0x3915bd=a12_0x393f,_0x5ec288=_0x28a364();while(!![]){try{const _0x48060c=-parseInt(_0x3915bd(0x8e))/0x1+-parseInt(_0x3915bd(0x78))/0x2*(-parseInt(_0x3915bd(0xa0))/0x3)+parseInt(_0x3915bd(0x85))/0x4+-parseInt(_0x3915bd(0xab))/0x5*(parseInt(_0x3915bd(0xb0))/0x6)+parseInt(_0x3915bd(0x70))/0x7+parseInt(_0x3915bd(0xa8))/0x8*(-parseInt(_0x3915bd(0xa4))/0x9)+parseInt(_0x3915bd(0x6f))/0xa*(parseInt(_0x3915bd(0xaf))/0xb);if(_0x48060c===_0x2e0d8b)break;else _0x5ec288['push'](_0x5ec288['shift']());}catch(_0x5dddef){_0x5ec288['push'](_0x5ec288['shift']());}}}(a12_0xd0b7,0xda1a2));const {default:BrowserStackSetup}=require(a12_0x550224(0xa6)),logger=require(a12_0x550224(0x7e))[a12_0x550224(0x9a)],{URL}=require('url'),helper=require(a12_0x550224(0x6d)),{HELP_MESSAGES,ERROR_MESSAGES}=require('./constants'),validHosts=function(_0x19df27){return _0x19df27['split'](',')['every'](_0x580983=>{const _0x3438bb=a12_0x393f;try{new URL(_0x580983[_0x3438bb(0xa3)]());}catch(_0x2d0e2d){return![];}return!![];});},parseOnPremHosts=function(_0x4d2ad1){const _0x2758e4=a12_0x550224,_0x35a61e={};_0x35a61e[_0x2758e4(0xa1)]=function(_0x2b6d76,_0x5c1ad1){return _0x2b6d76===_0x5c1ad1;},_0x35a61e[_0x2758e4(0x74)]=_0x2758e4(0x76),_0x35a61e[_0x2758e4(0x8c)]=_0x2758e4(0xa9),_0x35a61e[_0x2758e4(0x75)]=_0x2758e4(0x91);const _0x5cefe9=_0x35a61e;return _0x4d2ad1[_0x2758e4(0x6c)](',')[_0x2758e4(0x7c)](_0x1bd859=>{const _0x3f0a03=_0x2758e4,_0xb134f4=new URL(_0x1bd859['trim']()),_0x5df9d3=_0xb134f4[_0x3f0a03(0xa7)],_0x2d6235=_0xb134f4[_0x3f0a03(0x98)]||(_0x5cefe9[_0x3f0a03(0xa1)](_0xb134f4[_0x3f0a03(0x93)],_0x5cefe9[_0x3f0a03(0x74)])?_0x5cefe9[_0x3f0a03(0x8c)]:'80'),_0x2fb894=_0xb134f4[_0x3f0a03(0x93)][_0x3f0a03(0x94)](':',''),_0x1592ec=_0x5cefe9[_0x3f0a03(0xa1)](_0x2fb894,_0x5cefe9[_0x3f0a03(0x75)])?0x1:0x0;return _0x5df9d3+','+_0x2d6235+','+_0x1592ec;});},connectCommandBuilder=function(_0x44070c){const _0x44f4b3=a12_0x550224,_0xe067de={};_0xe067de[_0x44f4b3(0x69)]=_0x44f4b3(0x6e);const _0x5e73db=_0xe067de,_0x41b908={};_0x41b908[_0x44f4b3(0x96)]=HELP_MESSAGES[_0x44f4b3(0x73)][_0x44f4b3(0x9e)],_0x41b908['type']=_0x5e73db['kscbf'];const _0x3a1664={};_0x3a1664[_0x44f4b3(0x96)]=HELP_MESSAGES['options'][_0x44f4b3(0x80)],_0x3a1664[_0x44f4b3(0x95)]=_0x5e73db[_0x44f4b3(0x69)],_0x3a1664['demandOption']=!![];const _0x3425f2={};return _0x3425f2[_0x44f4b3(0x8b)]=_0x41b908,_0x3425f2[_0x44f4b3(0x80)]=_0x3a1664,_0x44070c['options'](_0x3425f2);},connectCommandHandler=async function(_0x2d5f9d){const _0x35ea05=a12_0x550224,_0x2beca5={'bylZT':'integrations','SrGOG':function(_0x5e191e,_0x26645b){return _0x5e191e===_0x26645b;},'sbNvY':'undefined','fOptR':'BrowserStack\x20access\x20key\x20missing.','gMHTk':_0x35ea05(0x7f),'lLMaZ':function(_0x5c9816,_0x4b1dec){return _0x5c9816(_0x4b1dec);},'agnIH':_0x35ea05(0x7d),'NpqfR':_0x35ea05(0x8a),'rJMvz':_0x35ea05(0xad),'HkhjN':_0x35ea05(0x97)};try{const _0x440dce=new BrowserStackSetup(_0x2d5f9d,_0x2beca5[_0x35ea05(0xae)]);_0x2d5f9d[_0x35ea05(0xa5)]&&(_0x440dce[_0x35ea05(0x9f)][_0x35ea05(0xac)]=_0x2d5f9d[_0x35ea05(0xa5)]);if(_0x2beca5[_0x35ea05(0x90)](typeof _0x440dce['config'][_0x35ea05(0xac)],_0x2beca5['sbNvY'])){logger[_0x35ea05(0xb2)](_0x2beca5[_0x35ea05(0xb1)]);throw new Error(ERROR_MESSAGES['bstackAccessKey'][_0x35ea05(0x9c)]);}const _0x57e61c=_0x2d5f9d[_0x35ea05(0x80)];if(_0x2beca5[_0x35ea05(0x90)](typeof _0x57e61c,_0x2beca5[_0x35ea05(0x99)])){logger['error'](_0x2beca5[_0x35ea05(0x77)]);throw new Error(ERROR_MESSAGES['hosts'][_0x35ea05(0x9c)]);}if(!_0x2beca5[_0x35ea05(0x79)](validHosts,_0x57e61c)){logger[_0x35ea05(0xb2)](_0x2beca5[_0x35ea05(0x7a)]);throw new Error(ERROR_MESSAGES[_0x35ea05(0x80)]['invalid']);}const _0x1cfc37=_0x2beca5['lLMaZ'](parseOnPremHosts,_0x57e61c);_0x440dce[_0x35ea05(0x9f)][_0x35ea05(0x6b)]=!![],_0x440dce[_0x35ea05(0x9f)][_0x35ea05(0x87)][_0x35ea05(0x6a)]=_0x2beca5[_0x35ea05(0x86)],_0x440dce[_0x35ea05(0x9f)]['browserStackLocalOptions'][_0x35ea05(0x89)]=_0x1cfc37['join'](','),helper['setProxySettings'](_0x440dce['config']),await _0x440dce[_0x35ea05(0x84)](),logger[_0x35ea05(0x8d)](_0x2beca5[_0x35ea05(0x82)]);}catch(_0x30add){logger['error'](_0x2beca5[_0x35ea05(0x81)]);throw new Error(_0x30add[_0x35ea05(0x88)]());}};function a12_0x393f(_0xdcd757,_0x46dc7c){const _0xd0b787=a12_0xd0b7();return a12_0x393f=function(_0x393f1b,_0x56b4da){_0x393f1b=_0x393f1b-0x68;let _0x8fea7e=_0xd0b787[_0x393f1b];return _0x8fea7e;},a12_0x393f(_0xdcd757,_0x46dc7c);}function a12_0xd0b7(){const _0xa0013d=['sbNvY','winstonLogger','footer','missing','usage','bstackAccessKey','config','6ldnNch','mekUY','root','trim','81sQiyEO','bstackAccesskey','../../helpers/BrowserStackSetup','hostname','1436792FgRstb','443','xqUkn','2149685WgfLEw','accessKey','Connection\x20established\x20successfully.','bylZT','44kEMDER','6uyyHtS','fOptR','error','connect','kscbf','localIdentifier','browserstackLocal','split','../../helpers/helper','string','6238580IGHFws','4340623pibHlA','fXZAr','demandCommand','options','rQzmR','acTwY','https:','gMHTk','68488ftGdYg','lLMaZ','agnIH','help','map','Hosts\x20not\x20valid','../../helpers/logger','Integration\x20hosts\x20missing.','hosts','HkhjN','rJMvz','command','setupBrowserstackLocal','4879396dFahuA','NpqfR','browserStackLocalOptions','toString','only','integrations-repeater','bstack-accesskey','Vkema','info','1464184QJCFhZ','epilogue','SrGOG','https','exports','protocol','replace','type','describe','Failed\x20to\x20establish\x20connection.','port'];a12_0xd0b7=function(){return _0xa0013d;};return a12_0xd0b7();}function run(_0x295424){const _0x410026=a12_0x550224,_0x5c601e={};_0x5c601e[_0x410026(0xaa)]=_0x410026(0x68),_0x5c601e[_0x410026(0x71)]=_0x410026(0x7b);const _0x1258fd=_0x5c601e;_0x295424[_0x410026(0x9d)](HELP_MESSAGES[_0x410026(0x83)][_0x410026(0xa2)])[_0x410026(0x83)](_0x1258fd[_0x410026(0xaa)],HELP_MESSAGES[_0x410026(0x83)][_0x410026(0x68)],connectCommandBuilder,connectCommandHandler)[_0x410026(0x72)]()['help'](_0x1258fd[_0x410026(0x71)])[_0x410026(0x8f)](HELP_MESSAGES['command'][_0x410026(0x9b)]);}module[a12_0x550224(0x92)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a13_0x3a5901=a13_0x320d;(function(_0xb799aa,_0x59e0cc){var _0x302446=a13_0x320d,_0x5b348a=_0xb799aa();while(!![]){try{var _0x489ea9=parseInt(_0x302446(0x11d))/0x1*(parseInt(_0x302446(0x118))/0x2)+-parseInt(_0x302446(0x117))/0x3+parseInt(_0x302446(0x10f))/0x4+parseInt(_0x302446(0x120))/0x5*(-parseInt(_0x302446(0x10c))/0x6)+parseInt(_0x302446(0x121))/0x7*(parseInt(_0x302446(0x113))/0x8)+-parseInt(_0x302446(0x10b))/0x9*(-parseInt(_0x302446(0x119))/0xa)+-parseInt(_0x302446(0x112))/0xb*(parseInt(_0x302446(0x123))/0xc);if(_0x489ea9===_0x59e0cc)break;else _0x5b348a['push'](_0x5b348a['shift']());}catch(_0x383fa2){_0x5b348a['push'](_0x5b348a['shift']());}}}(a13_0x24f0,0x2602b));var a13_0x7f1f41={};a13_0x7f1f41[a13_0x3a5901(0x11c)]=a13_0x3a5901(0x116),a13_0x7f1f41[a13_0x3a5901(0x111)]='This\x20option\x20allows\x20you\x20to\x20provide\x20additional\x20configuration\x20specific\x20to\x20your\x20environment.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.';var a13_0x478f61={};a13_0x478f61[a13_0x3a5901(0x114)]=a13_0x3a5901(0x11f),a13_0x478f61[a13_0x3a5901(0x109)]=a13_0x3a5901(0x115),a13_0x478f61[a13_0x3a5901(0x10a)]=a13_0x3a5901(0x110);var a13_0x347491={};a13_0x347491[a13_0x3a5901(0x125)]=a13_0x7f1f41,a13_0x347491[a13_0x3a5901(0x124)]=a13_0x478f61,exports[a13_0x3a5901(0x122)]=a13_0x347491;var a13_0x4dcb8f={};a13_0x4dcb8f[a13_0x3a5901(0x11a)]='BrowserStack\x20access\x20key\x20missing.\x20Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.';function a13_0x320d(_0x35031a,_0x1243be){var _0x24f020=a13_0x24f0();return a13_0x320d=function(_0x320db4,_0x465015){_0x320db4=_0x320db4-0x109;var _0x2e51a4=_0x24f020[_0x320db4];return _0x2e51a4;},a13_0x320d(_0x35031a,_0x1243be);}function a13_0x24f0(){var _0x49d71d=['Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.','809337ZRILhT','2lAnPQy','13780pXZvOK','missing','invalid','bstackAccessKey','87118IFlvYs','ERROR_MESSAGES','Integrate\x20BrowserStack\x20with\x20your\x20favorite\x20third-party\x20tools\x20for\x20faster\x20and\x20efficient\x20testing.','125WsoyUV','91xAXOGj','HELP_MESSAGES','1452UVbEYB','command','options','connect','footer','1179EueYdi','31494hYOnGb','Integration\x20hosts\x20are\x20not\x20in\x20the\x20right\x20format.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.','Integration\x20hosts\x20missing.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.','971996IeBYWh','Use\x20\x22browserstack-cli\x20integrations\x20<command_group>\x20-h/--help\x22\x20for\x20additional\x20help\x20and\x20details\x20about\x20BrowserStack\x20integrations.','hosts','18337detxeQ','152472dIuqQU','root','Connect\x20new\x20integration\x20from\x20a\x20list\x20of\x20supported\x20tools.'];a13_0x24f0=function(){return _0x49d71d;};return a13_0x24f0();}var a13_0x418e58={};a13_0x418e58[a13_0x3a5901(0x11a)]=a13_0x3a5901(0x10e),a13_0x418e58[a13_0x3a5901(0x11b)]=a13_0x3a5901(0x10d);var a13_0x3527ca={};a13_0x3527ca[a13_0x3a5901(0x11c)]=a13_0x4dcb8f,a13_0x3527ca['hosts']=a13_0x418e58,exports[a13_0x3a5901(0x11e)]=a13_0x3527ca;
|
package/src/bin/jest/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a14_0x154bba=a14_0x1b9f;(function(_0x5599ff,_0x934981){const _0x158d1c=a14_0x1b9f,_0x263aac=_0x5599ff();while(!![]){try{const _0x56fa67=-parseInt(_0x158d1c(0x1e0))/0x1*(parseInt(_0x158d1c(0x260))/0x2)+-parseInt(_0x158d1c(0x28a))/0x3+parseInt(_0x158d1c(0x212))/0x4*(-parseInt(_0x158d1c(0x1ec))/0x5)+-parseInt(_0x158d1c(0x210))/0x6+-parseInt(_0x158d1c(0x1f8))/0x7*(-parseInt(_0x158d1c(0x249))/0x8)+-parseInt(_0x158d1c(0x1ce))/0x9*(-parseInt(_0x158d1c(0x261))/0xa)+parseInt(_0x158d1c(0x224))/0xb*(parseInt(_0x158d1c(0x22b))/0xc);if(_0x56fa67===_0x934981)break;else _0x263aac['push'](_0x263aac['shift']());}catch(_0x553bb3){_0x263aac['push'](_0x263aac['shift']());}}}(a14_0x2d04,0xe905e));function a14_0x2d04(){const _0x517056=['testSequencer','useW3C','../../helpers/accessibility-automation/helper','rmSync','kgBqQ','path','PQSrc','isNotUndefined','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','euBLw','browserStackLogLevel','1gAWuVk','logLevel','FeVld','Getting\x20your\x20jest\x20configs\x20from\x20package.json','requirePWModule','../../helpers/test-orchestration/testOrchestrationHandler','platform','hpxed','mjs','resolveModule','maxFailures','DXCRs','90CXyBaD','lojSM','pCvXP','jkacd','failureThresholdCount','win32','data-hooks.js','customTestRunner.js','info','testContextOptions','Found:\x20','cjs','1064ErnQRn','failFast','XmzkQ','readFileSync','./test-observability/test-details','@jest/core/build/ReporterDispatcher.js','config','child\x20process\x20exited\x20with\x20code\x20','Creating\x20','mPrzw','USER_CONFIG_DETAILS_PATH','ZqqbK','isEmpty','customImplements','timeout__','../../helpers/percy/utils','setupFilesAfterEnv','Getting\x20your\x20jest\x20configs\x20from\x20','false','ssDmQ','__isPlaywrightInstalled','apply','errorMessage','browserStackPercyOptions','11381070pxQWhv','\x0a\x20\x20\x20\x20\x20\x20','141808QqKxaX','child_process','isRunning','accessibilityOptions','skipSessionStatus','debug','../../helpers/logger','Playwright\x20not\x20detected\x20or\x20error\x20setting\x20up\x20Jest-Playwright\x20integration:','isTestOrchestrationEnabled','accessibility','initialize','retries__','assign','lScOe','upqla','CkXCc','isCLIEnabled','OMayv','110zlgXyM','handleApp','customEnvironment.js','maxRetries','length','exitCode','EVENTS','3574068jvrlZb','DWABM','retryTestsOnFailure','proxySettings','Unable\x20to\x20find\x20jest-circus,\x20','log','test.setup.js','parallelsPerPlatform','BSTACK_JEST_TEST_ENV','parallels__','readInitialOptions','[Jest\x20Command]\x20Accessibility\x20enabled:\x20','bkWZW','test_before.setup.js','exports','platformCaps','MDUbN','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','abortBuildOnFailure','platforms','wnhML','../../helpers/performance/performance-tester','launchBuild','testObservability','shutdown','SDK_SETUP','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20})();\x0a\x20\x20\x20\x20','zeOWv','maxWorkers','97160yOcrnt','Skipping\x20accessibility\x20env\x20setup\x20for\x20Playwright\x20due\x20to:\x20','const\x20config=','PACKAGE_TYPE','push','unlinkSync','testEnvironmentOptions','RpOvK','join','customTestRunnerTemplate.js','isUndefined','BROWSERSTACK_CAPABILITIES','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','MEbbW','reorderTestFiles','../../helpers/testhub/testhubHandler','@playwright/test','slice','zgekL','../../helpers/BrowserStackSetup','FRAMEWORKS','testRunner','FsIxI','2339860vrSIFp','490vuMlni','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','Error\x20while\x20parsing\x20','error\x20removing\x20tcg\x20config\x20file','cQcTr','getPackageType','FZuix','../../helpers/test-observability/utils','QlZpS','JEST_TEST_ORDER','shouldProcessEventForTesthub','svWob','true','ImyOy','WivYL','ZanhD','cwd','getInstance','ElHmu','close','ysbJC','printBuildLink','jest_browserstack_results.json','\x20with\x20browserstack\x20jest\x20configs','BROWSERSTACK_TEST_OBSERVABILITY_YML','error','xtJfE','\x0amodule.exports\x20=\x20config;','setupFiles','findIndex','prepareCapabilities','env','existsSync','RFHHV','WAcZB','testTimeout','parse','stop','writeFileSync','PsMTj','getTCGConfigFilePaths','5229453YLGXzk','default','rmdirSync','jest.setup.js','../../helpers/utilities','[Jest\x20Command]\x20Playwright\x20detected,\x20setting\x20accessibility\x20platform:\x20','../v2/browserstackCLI','recursive','requireSeleniumWebdriver',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20','\x20:\x20','nxOaN','reporters','eHUqc','OImxY','\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27,\x20\x27@jest/core\x27)).default;\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','../utils/constants','finalExecution','format','stringify','gPhYP','JBUup','UrRBe','OqjIM','testEnvironment','skipSessionName','jest-circus/build/runner.js','iZXcH','winstonLogger','../../helpers/performance/constants','cLweN','../../helpers/test-observability/constants','getPackageVersion','DqSSF','\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x0a\x20\x20\x20\x20\x20\x20(async\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{createTestScheduler}\x20=\x20requireModule(\x27@jest/core\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20tempScheduler\x20=\x20await\x20createTestScheduler({reporters:\x20[]},\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20tempScheduler._dispatcher.constructor;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','inherit','../utils/clientTroubleshootingService','requireModule','checkAccessibilityPlatformConfig','\x20test\x20files\x20to\x20run.','setupTCGAuth','JEST','hzNnN','runner','json','LrFiT','findTestFiles','sKuPp','@jest/core','jest','workingDir','jest_browserstack.config.cjs','Deleted\x20fail-fast\x20state\x20folder:\x20','289854VTsofv','customCircus.js','npx','isBrowserstackInfra','splice','Fbkbw','turboScaleUrl'];a14_0x2d04=function(){return _0x517056;};return a14_0x2d04();}const fs=require('fs'),path=require(a14_0x154bba(0x1da)),util=require('util'),{spawn}=require(a14_0x154bba(0x213)),logger=require(a14_0x154bba(0x218))[a14_0x154bba(0x2a6)],{default:BrowserStackSetup}=require(a14_0x154bba(0x25c)),helper=require('../../helpers/helper'),utilities=require(a14_0x154bba(0x28e)),constants=require(a14_0x154bba(0x29a)),accessibilityHelper=require(a14_0x154bba(0x1d7)),{updateTestRerunConfig}=require('./test-observability/helper'),testOpsHelper=require(a14_0x154bba(0x268)),{debug}=require(a14_0x154bba(0x268)),TestDetails=require(a14_0x154bba(0x1fc)),{getPercyOptions}=require(a14_0x154bba(0x207)),TestHubHandler=require(a14_0x154bba(0x258)),testhubUtils=require('../../helpers/testhub/utils'),{FRAMEWORKS}=require(a14_0x154bba(0x2a9)),PerformanceTester=require(a14_0x154bba(0x240)),PerformanceEvents=require(a14_0x154bba(0x2a7))[a14_0x154bba(0x22a)],TestOrchestrationHandler=require(a14_0x154bba(0x1e5)),BrowserstackCLI=require(a14_0x154bba(0x290)),{checkPwandBootstrapCli}=require('../../helpers/playwright-helper'),ClientTroubleShootingService=require(a14_0x154bba(0x2ae)),{checkAccessibilityPlatformConfig}=require(a14_0x154bba(0x1d7)),getUserJestConfigs=async(_0x177858,_0x282262)=>{const _0x1446a5=a14_0x154bba,_0x222b0d={'ZfJOP':'jest-config/build/readConfigFileAndSetRootDir.js','DqSSF':'jest-config','lScOe':function(_0x34cbf7,_0x1eab05){return _0x34cbf7||_0x1eab05;},'MvzGx':function(_0x511276,_0x31e950){return _0x511276(_0x31e950);},'bkWZW':'package.json','PQAHg':_0x1446a5(0x1e3),'PQSrc':_0x1446a5(0x1e8),'cQcTr':_0x1446a5(0x1f7),'FsIxI':_0x1446a5(0x2b6)};let _0xb3d73c;try{_0xb3d73c=helper['requireModule'](_0x222b0d['ZfJOP'],_0x222b0d[_0x1446a5(0x2ab)]);}catch{const _0x59932d=helper[_0x1446a5(0x2af)](_0x222b0d[_0x1446a5(0x2ab)]);_0xb3d73c={'default':async _0x5638e0=>{const _0x50bd17=_0x1446a5,_0xd852f2=await _0x59932d[_0x50bd17(0x235)](_0x5638e0,{});return _0xd852f2[_0x50bd17(0x1fe)];}};}const _0x27f152=_0x282262[_0x1446a5(0x27e)](_0x20eac4=>_0x20eac4==='--config');if(!helper[_0x1446a5(0x253)](_0x177858[_0x1446a5(0x1fe)])){logger['info'](_0x1446a5(0x209)+_0x177858[_0x1446a5(0x1fe)]),process[_0x1446a5(0x280)][_0x1446a5(0x202)]=_0x177858['config'];const _0x3ee715=await(0x0,_0xb3d73c[_0x1446a5(0x28b)])(path['resolve'](_0x177858['config']));return _0x282262[_0x1446a5(0x1d2)](_0x27f152,0x2),_0x222b0d[_0x1446a5(0x21f)](_0x3ee715,{});}const _0x869979=_0x222b0d['MvzGx'](require,path[_0x1446a5(0x251)](process[_0x1446a5(0x271)](),_0x222b0d[_0x1446a5(0x237)]));if(_0x869979[_0x1446a5(0x2bb)])return logger[_0x1446a5(0x1f4)](_0x222b0d['PQAHg']),_0x869979[_0x1446a5(0x2bb)];const _0x46159f=['js',_0x222b0d[_0x1446a5(0x1db)],_0x222b0d[_0x1446a5(0x265)],_0x222b0d[_0x1446a5(0x25f)],'ts'];for(const _0x17ab5b of _0x46159f){const _0x200219=path['join'](process[_0x1446a5(0x271)](),'jest.config.'+_0x17ab5b);if(fs[_0x1446a5(0x281)](_0x200219)){process[_0x1446a5(0x280)][_0x1446a5(0x202)]=_0x200219;const _0x1ef1d3=await(0x0,_0xb3d73c[_0x1446a5(0x28b)])(_0x200219);return _0x1ef1d3;}}return{};},getSerial=(_0x405c29,_0x1c7e95)=>{const _0x328ddc=a14_0x154bba,_0x3f2ab5={};_0x3f2ab5[_0x328ddc(0x269)]='true',_0x3f2ab5[_0x328ddc(0x26c)]=function(_0xb32ebf,_0xc8a9b3){return _0xb32ebf>_0xc8a9b3;},_0x3f2ab5['iZXcH']=function(_0x449557,_0x4dd764){return _0x449557>_0x4dd764;},_0x3f2ab5['hzNnN']=_0x328ddc(0x20a);const _0x51f14f=_0x3f2ab5;let _0x3d90dc=_0x51f14f[_0x328ddc(0x269)];return _0x51f14f[_0x328ddc(0x26c)](_0x405c29[_0x328ddc(0x228)],0x1)&&(!_0x1c7e95['runInBand']&&(helper['isUndefined'](_0x1c7e95[_0x328ddc(0x248)])||_0x51f14f[_0x328ddc(0x2a5)](_0x1c7e95[_0x328ddc(0x248)],0x1)))&&(_0x3d90dc=_0x51f14f[_0x328ddc(0x2b4)]),_0x3d90dc;},getMaxWorkers=(_0xc7fc83,_0x5ed533,_0x36a47e)=>{const _0x5b9a9a=a14_0x154bba,_0x529db3={'DXCRs':function(_0x17a690,_0x20bb68){return _0x17a690(_0x20bb68);}};let _0x5bbd4e=0x1;if(!helper['isUndefined'](_0x5ed533['parallelsPerPlatform']))_0x5bbd4e=_0x529db3[_0x5b9a9a(0x1eb)](parseInt,_0x5ed533[_0x5b9a9a(0x232)]);else{if(!helper[_0x5b9a9a(0x253)](_0xc7fc83[_0x5b9a9a(0x248)]))_0x5bbd4e=_0xc7fc83[_0x5b9a9a(0x248)];else!helper[_0x5b9a9a(0x253)](_0x36a47e[_0x5b9a9a(0x248)])&&(_0x5bbd4e=_0x36a47e[_0x5b9a9a(0x248)]);}return _0x5bbd4e;};async function run(_0x55b32b,_0x2aacf4,_0x129259){const _0x250444=a14_0x154bba,_0x7c203d={'FeVld':_0x250444(0x264),'euBLw':_0x250444(0x2bb),'tpEZJ':function(_0x1f8636,_0x505d4b){return _0x1f8636(_0x505d4b);},'ZanhD':_0x250444(0x259),'cLweN':function(_0x135d21,_0x406a83,_0x35aab9,_0x3b83f7){return _0x135d21(_0x406a83,_0x35aab9,_0x3b83f7);},'xtJfE':function(_0xd22966,_0x30a50){return _0xd22966!=_0x30a50;},'nxOaN':_0x250444(0x26d),'tidkF':function(_0x112152,_0x55763f,_0x6b08d3){return _0x112152(_0x55763f,_0x6b08d3);},'fXUGz':_0x250444(0x245),'gPhYP':function(_0x28fe31,_0x5a9410){return _0x28fe31(_0x5a9410);},'jkacd':function(_0x1fe1e3,_0x6e7307){return _0x1fe1e3(_0x6e7307);},'ZqqbK':_0x250444(0x20a),'hpxed':function(_0x20253a,_0x429e7b,_0x4d0d06){return _0x20253a(_0x429e7b,_0x4d0d06);},'XmzkQ':function(_0x6e67ae,_0x13b1b1,_0xe0a528,_0x171392){return _0x6e67ae(_0x13b1b1,_0xe0a528,_0x171392);},'zgekL':function(_0x1dcf4f,_0xa7f2b6){return _0x1dcf4f*_0xa7f2b6;},'MEbbW':function(_0x566ede,_0x2f2213){return _0x566ede===_0x2f2213;},'pCvXP':_0x250444(0x1cc),'RFHHV':'jest_browserstack.config.js','FZuix':_0x250444(0x205),'WAcZB':_0x250444(0x277),'QeeZB':_0x250444(0x1f3),'eHUqc':_0x250444(0x252),'lojSM':_0x250444(0x226),'Fbkbw':_0x250444(0x28d),'JYWIl':'customSequencer.js','qEZcL':'jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','kgBqQ':'jest-circus','JBUup':_0x250444(0x2a4),'UrRBe':function(_0x2e6e04,_0x5011bb){return _0x2e6e04(_0x5011bb);},'sKuPp':'test-observability','OyQnS':_0x250444(0x1f2),'cWHmY':_0x250444(0x1cf),'WivYL':_0x250444(0x238),'ImyOy':_0x250444(0x1dd),'zeOWv':'playwright','ysbJC':'Playwright\x20detected,\x20adding\x20Jest-Playwright\x20setup','ElHmu':_0x250444(0x231),'wnhML':_0x250444(0x219),'JColk':_0x250444(0x28b),'ssDmQ':_0x250444(0x1fd),'CkXCc':_0x250444(0x2ba),'MDUbN':'Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','mPrzw':function(_0x401e5e,_0x2c0805){return _0x401e5e>_0x2c0805;},'OqjIM':_0x250444(0x262),'upqla':function(_0x5a1d0d,_0x294921,_0x104a76,_0x3e48bd){return _0x5a1d0d(_0x294921,_0x104a76,_0x3e48bd);},'PsMTj':_0x250444(0x1d0),'DWABM':'--config','RpOvK':function(_0x5a03ab,_0x242943){return _0x5a03ab===_0x242943;},'OImxY':_0x250444(0x1f1),'LrFiT':_0x250444(0x2ad),'OMayv':_0x250444(0x274)},_0x3f5c74=helper[_0x250444(0x2aa)](_0x7c203d[_0x250444(0x270)]);global[_0x250444(0x20c)]=!!_0x3f5c74;helper[_0x250444(0x1d1)]()?(await _0x129259[_0x250444(0x21c)](_0x55b32b),await helper[_0x250444(0x225)](_0x129259['config'])):await _0x129259[_0x250444(0x2b2)]();await _0x7c203d[_0x250444(0x2a8)](checkPwandBootstrapCli,_0x3f5c74,constants[_0x250444(0x25d)][_0x250444(0x2b3)],_0x129259);if(!_0x129259[_0x250444(0x1fe)])return;_0x7c203d[_0x250444(0x27b)](_0x129259[_0x250444(0x1fe)][_0x250444(0x242)],null)?process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x129259[_0x250444(0x1fe)][_0x250444(0x242)]:process[_0x250444(0x280)][_0x250444(0x279)]=_0x7c203d[_0x250444(0x295)];const _0x3d8a39=new TestOrchestrationHandler(_0x129259[_0x250444(0x1fe)]),_0x3db625=await _0x7c203d['tidkF'](getUserJestConfigs,_0x55b32b,_0x2aacf4);logger[_0x250444(0x1f4)](_0x7c203d['fXUGz']);const _0x5ecf46=Object[_0x250444(0x21e)]({},_0x3db625);_0x5ecf46[_0x250444(0x24f)]=Object[_0x250444(0x21e)]({},_0x5ecf46['testEnvironmentOptions'],{'server':helper['getHubUrl'](_0x129259[_0x250444(0x1fe)]),'environment':_0x3db625[_0x250444(0x2a2)]}),_0x5ecf46[_0x250444(0x24f)][_0x250444(0x20f)]=_0x7c203d[_0x250444(0x29e)](getPercyOptions,_0x129259[_0x250444(0x1fe)]);const _0x1016f0=helper[_0x250444(0x1d6)](_0x129259['config']);!helper[_0x250444(0x253)](_0x129259['config'][_0x250444(0x215)])&&(process[_0x250444(0x280)][_0x250444(0x255)]=JSON[_0x250444(0x29d)](_0x129259[_0x250444(0x1fe)]['accessibilityOptions']));if(!BrowserstackCLI[_0x250444(0x272)]()[_0x250444(0x214)]()){const _0x598c3e=await TestHubHandler[_0x250444(0x241)](FRAMEWORKS['JEST'],_0x129259);}const _0x2a1745=helper[_0x250444(0x27f)](_0x129259[_0x250444(0x1fe)],_0x1016f0,constants[_0x250444(0x25d)][_0x250444(0x2b3)]);process[_0x250444(0x280)][_0x250444(0x254)]=JSON['stringify'](_0x2a1745);let _0x1ceacc=_0x129259[_0x250444(0x1fe)][_0x250444(0x21b)];_0x1ceacc=_0x1ceacc||accessibilityHelper[_0x250444(0x2b0)](_0x129259[_0x250444(0x1fe)]),process[_0x250444(0x280)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1ceacc,logger[_0x250444(0x217)](_0x250444(0x236)+_0x1ceacc+',\x20CLI\x20running:\x20'+BrowserstackCLI[_0x250444(0x272)]()['isRunning']());if(_0x3f5c74)try{const _0x3a1de1=_0x7c203d[_0x250444(0x1ef)](checkAccessibilityPlatformConfig,_0x129259[_0x250444(0x1fe)]);process[_0x250444(0x280)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x3a1de1?_0x7c203d[_0x250444(0x295)]:_0x7c203d[_0x250444(0x203)],logger[_0x250444(0x217)](_0x250444(0x28f)+_0x3a1de1+',\x20BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM='+process['env'][_0x250444(0x23c)]);}catch(_0x502515){logger[_0x250444(0x217)](_0x250444(0x24a)+util[_0x250444(0x29c)](_0x502515));}_0x5ecf46[_0x250444(0x24f)]['capabilities']=_0x2a1745,_0x5ecf46[_0x250444(0x24f)]['serial__']=_0x7c203d[_0x250444(0x1e7)](getSerial,_0x2a1745,_0x55b32b),_0x5ecf46[_0x250444(0x24f)][_0x250444(0x234)]=_0x7c203d[_0x250444(0x1fa)](getMaxWorkers,_0x55b32b,_0x129259[_0x250444(0x1fe)],_0x3db625),_0x5ecf46[_0x250444(0x24f)][_0x250444(0x22e)]=_0x129259[_0x250444(0x1fe)][_0x250444(0x22e)],_0x5ecf46['testEnvironmentOptions'][_0x250444(0x206)]=_0x7c203d[_0x250444(0x25b)](_0x55b32b[_0x250444(0x284)],0x1)||0x1388,_0x5ecf46[_0x250444(0x24f)][_0x250444(0x2a3)]=_0x129259[_0x250444(0x1fe)][_0x250444(0x1f5)][_0x250444(0x2a3)],_0x5ecf46[_0x250444(0x24f)][_0x250444(0x216)]=_0x129259['config']['testContextOptions']['skipSessionStatus'],_0x5ecf46[_0x250444(0x24f)][_0x250444(0x1df)]=_0x129259[_0x250444(0x1fe)][_0x250444(0x1e1)],_0x5ecf46[_0x250444(0x24f)][_0x250444(0x1d4)]=_0x129259[_0x250444(0x1fe)][_0x250444(0x1d4)],_0x5ecf46[_0x250444(0x24f)][_0x250444(0x23a)]=_0x129259[_0x250444(0x1fe)][_0x250444(0x23e)];const _0x382d7b=helper['parseTestOrchestrationOptions'](_0x129259[_0x250444(0x1fe)]);if(!helper[_0x250444(0x204)](_0x382d7b)){helper[_0x250444(0x1dc)](_0x382d7b[_0x250444(0x22d)])&&(_0x5ecf46[_0x250444(0x24f)][_0x250444(0x21d)]=_0x382d7b['retryTestsOnFailure'][_0x250444(0x227)]);if(helper['isNotUndefined'](_0x382d7b[_0x250444(0x23d)])&&helper['isNotUndefined'](_0x382d7b[_0x250444(0x23d)][_0x250444(0x1cb)])){const _0x4d7f94={};_0x4d7f94[_0x250444(0x1f0)]=_0x382d7b['abortBuildOnFailure'][_0x250444(0x1ea)],_0x4d7f94[_0x250444(0x1cb)]=_0x382d7b['abortBuildOnFailure'][_0x250444(0x1cb)],_0x5ecf46['testEnvironmentOptions'][_0x250444(0x1f9)]=_0x4d7f94;}}let _0x361334='';_0x7c203d[_0x250444(0x256)](helper[_0x250444(0x266)](),constants[_0x250444(0x24c)]['MODULE'])?_0x361334=_0x7c203d[_0x250444(0x1ee)]:_0x361334=_0x7c203d[_0x250444(0x282)];const _0x352c44=_0x361334,_0x180b7f=path[_0x250444(0x251)](__dirname,_0x7c203d[_0x250444(0x267)],_0x7c203d[_0x250444(0x283)]),_0x1705fa=path[_0x250444(0x251)](__dirname,_0x7c203d[_0x250444(0x267)],_0x7c203d['QeeZB']),_0x48af38=path[_0x250444(0x251)](__dirname,_0x7c203d['FZuix'],_0x7c203d[_0x250444(0x297)]);_0x5ecf46[_0x250444(0x2a2)]&&(process['env'][_0x250444(0x233)]=_0x5ecf46[_0x250444(0x2a2)]);_0x5ecf46[_0x250444(0x2a2)]=path[_0x250444(0x251)](__dirname,_0x7c203d[_0x250444(0x267)],_0x7c203d[_0x250444(0x1ed)]),_0x5ecf46[_0x250444(0x2b5)]=_0x1705fa,_0x5ecf46[_0x250444(0x208)]=_0x5ecf46[_0x250444(0x208)]||[],_0x5ecf46['setupFilesAfterEnv'][_0x250444(0x24d)](path['join'](__dirname,_0x7c203d[_0x250444(0x1d3)]));_0x3d8a39[_0x250444(0x21a)]()&&(_0x5ecf46[_0x250444(0x1d5)]=path['join'](__dirname,_0x7c203d[_0x250444(0x267)],_0x7c203d['JYWIl']));if(testhubUtils[_0x250444(0x26b)]()){let _0x2b2fa4=null;try{_0x2b2fa4=helper[_0x250444(0x2af)](_0x7c203d['qEZcL'],_0x7c203d[_0x250444(0x1d9)]);}catch(_0xf0c9a){try{_0x2b2fa4=helper['requireModule'](_0x7c203d[_0x250444(0x29f)],_0x7c203d['kgBqQ']);}catch(_0x5bcc2d){_0x7c203d[_0x250444(0x2a0)](debug,_0x250444(0x22f)+_0x5bcc2d);}}_0x2b2fa4&&(_0x5ecf46['setupFilesAfterEnv'][_0x250444(0x24d)](path['join'](__dirname,_0x7c203d[_0x250444(0x2b9)],_0x7c203d['OyQnS'])),_0x5ecf46[_0x250444(0x25e)]=path['join'](__dirname,_0x7c203d[_0x250444(0x267)],_0x7c203d['cWHmY']));}_0x5ecf46[_0x250444(0x27d)]=_0x5ecf46[_0x250444(0x27d)]||[];try{helper[_0x250444(0x292)](),_0x5ecf46['setupFiles'][_0x250444(0x24d)](path[_0x250444(0x251)](__dirname,_0x7c203d[_0x250444(0x26f)]));}catch{logger[_0x250444(0x217)](_0x7c203d[_0x250444(0x26e)]);}try{helper[_0x250444(0x1e4)][_0x250444(0x20d)](null,[_0x7c203d[_0x250444(0x270)],_0x7c203d[_0x250444(0x247)]]),logger[_0x250444(0x217)](_0x7c203d[_0x250444(0x275)]),_0x5ecf46[_0x250444(0x27d)]['push'](path[_0x250444(0x251)](__dirname,_0x7c203d[_0x250444(0x273)]));}catch(_0x1c6849){logger[_0x250444(0x217)](_0x7c203d[_0x250444(0x23f)],_0x1c6849);}_0x5ecf46['reporters']=_0x5ecf46[_0x250444(0x296)]||[_0x7c203d['JColk']],_0x7c203d[_0x250444(0x1e7)](updateTestRerunConfig,_0x5ecf46,_0x129259);const _0x471ebe=fs[_0x250444(0x1fb)](_0x48af38),_0x6389bc=helper[_0x250444(0x1e9)](_0x7c203d[_0x250444(0x20b)],_0x7c203d[_0x250444(0x221)]);!_0x6389bc[_0x250444(0x27a)]?fs[_0x250444(0x287)](_0x5ecf46['runner'],_0x250444(0x211)+_0x471ebe+_0x250444(0x299)+_0x129259[_0x250444(0x1fe)][_0x250444(0x23e)][_0x250444(0x228)]+_0x250444(0x293)):fs[_0x250444(0x287)](_0x5ecf46['runner'],_0x250444(0x211)+_0x471ebe+_0x250444(0x2ac)+_0x129259[_0x250444(0x1fe)][_0x250444(0x23e)][_0x250444(0x228)]+_0x250444(0x246));logger['info'](_0x250444(0x200)+_0x352c44+_0x250444(0x278)),fs[_0x250444(0x287)](_0x352c44,_0x250444(0x24b)+JSON['stringify'](_0x5ecf46)+_0x250444(0x27c));if(_0x3d8a39[_0x250444(0x21a)]()){logger[_0x250444(0x217)](_0x7c203d[_0x250444(0x23b)]);const _0x2079dc=await _0x3d8a39[_0x250444(0x2b8)](_0x5ecf46,_0x2aacf4[_0x250444(0x25a)](0x1),_0x352c44);logger[_0x250444(0x217)](_0x250444(0x1f6)+JSON['stringify'](_0x2079dc)+_0x250444(0x2b1));const _0x28a799=await _0x3d8a39[_0x250444(0x257)](_0x2079dc);logger[_0x250444(0x217)]('Reodered\x20Test\x20Files:\x20'+JSON[_0x250444(0x29d)](_0x28a799)),_0x28a799&&_0x7c203d[_0x250444(0x201)](_0x28a799[_0x250444(0x228)],0x0)&&(process['env'][_0x250444(0x26a)]=_0x28a799?.[_0x250444(0x251)](','));}logger[_0x250444(0x1f4)](_0x7c203d[_0x250444(0x2a1)]);testhubUtils[_0x250444(0x26b)]()&&TestDetails['setup']();helper['filterBrowserstackArgs']({},_0x2aacf4),PerformanceTester['end'](PerformanceEvents[_0x250444(0x244)]);const _0x36ef1d=_0x7c203d[_0x250444(0x220)](spawn,_0x7c203d[_0x250444(0x288)],[_0x7c203d[_0x250444(0x1de)],_0x7c203d[_0x250444(0x22c)],_0x352c44,..._0x2aacf4[_0x250444(0x25a)](0x1)],{'shell':_0x7c203d[_0x250444(0x250)](process[_0x250444(0x1e6)],_0x7c203d[_0x250444(0x298)]),'stdio':_0x7c203d[_0x250444(0x2b7)],'env':Object['assign']({},process[_0x250444(0x280)])});_0x36ef1d['on'](_0x7c203d[_0x250444(0x223)],async _0x21fc6d=>{const _0x20044f=_0x250444;PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']);try{const {browserstackFolderPath:_0x283be6,tcgConfigPath:_0x1b74b0}=helper[_0x20044f(0x289)]();fs['unlinkSync'](_0x1b74b0),fs[_0x20044f(0x28c)](_0x283be6);}catch(_0x318cf9){logger[_0x20044f(0x217)](_0x7c203d[_0x20044f(0x1e2)],_0x318cf9);}process[_0x20044f(0x229)]=_0x21fc6d,logger[_0x20044f(0x217)](_0x20044f(0x1ff)+_0x21fc6d),logger['info']('Deleting\x20'+_0x352c44);if(helper['isNotUndefined'](_0x382d7b)&&helper[_0x20044f(0x1dc)](_0x382d7b['abortBuildOnFailure'])&&fs[_0x20044f(0x281)](_0x382d7b[_0x20044f(0x23d)][_0x20044f(0x1cb)]))try{const _0x6de8cf={};_0x6de8cf[_0x20044f(0x291)]=!![],_0x6de8cf['force']=!![],fs[_0x20044f(0x1d8)](_0x382d7b[_0x20044f(0x23d)][_0x20044f(0x1cb)],_0x6de8cf),logger['debug'](_0x20044f(0x1cd)+_0x382d7b[_0x20044f(0x23d)][_0x20044f(0x1cb)]);}catch(_0x189f1c){logger['error']('Error\x20while\x20deleting\x20fail-fast\x20state\x20folder:\x20'+_0x189f1c);}let _0x1bee10=null;if(fs[_0x20044f(0x281)](_0x180b7f)){_0x1bee10=fs['readFileSync'](_0x180b7f);try{_0x1bee10=JSON[_0x20044f(0x285)](_0x1bee10);}catch(_0x5f4193){logger[_0x20044f(0x217)](_0x20044f(0x263)+_0x180b7f+',\x20'+_0x1bee10+_0x20044f(0x294)+_0x5f4193);}fs['unlinkSync'](_0x180b7f);}fs[_0x20044f(0x24e)](_0x352c44),fs[_0x20044f(0x24e)](_0x1705fa),_0x1bee10&&(_0x129259[_0x20044f(0x20e)]=helper['getErrorMessageFromResults'](_0x1bee10,_0x7c203d['euBLw'],_0x129259));const _0x291b2f=BrowserstackCLI[_0x20044f(0x222)]();try{await TestHubHandler[_0x20044f(0x286)](),await BrowserstackCLI[_0x20044f(0x272)]()[_0x20044f(0x286)]();}catch(_0x59f002){console[_0x20044f(0x230)](_0x59f002),_0x7c203d['tpEZJ'](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20'+util[_0x20044f(0x29c)](_0x59f002));}testOpsHelper[_0x20044f(0x276)](),TestDetails[_0x20044f(0x243)](),await utilities[_0x20044f(0x29b)](_0x129259,_0x291b2f);});}function a14_0x1b9f(_0x3cbb3e,_0x5e4024){const _0x2d045f=a14_0x2d04();return a14_0x1b9f=function(_0x1b9fbf,_0x3d5792){_0x1b9fbf=_0x1b9fbf-0x1cb;let _0x189dc8=_0x2d045f[_0x1b9fbf];return _0x189dc8;},a14_0x1b9f(_0x3cbb3e,_0x5e4024);}module[a14_0x154bba(0x239)]=run;
|
|
2
|
+
'use strict';const a14_0x5a54a7=a14_0xa6ec;(function(_0x583977,_0x4d7d3e){const _0xafcedb=a14_0xa6ec,_0x297d82=_0x583977();while(!![]){try{const _0x5762f3=-parseInt(_0xafcedb(0x1fc))/0x1*(parseInt(_0xafcedb(0x27e))/0x2)+parseInt(_0xafcedb(0x27b))/0x3*(parseInt(_0xafcedb(0x282))/0x4)+-parseInt(_0xafcedb(0x236))/0x5*(parseInt(_0xafcedb(0x294))/0x6)+parseInt(_0xafcedb(0x2b8))/0x7*(parseInt(_0xafcedb(0x248))/0x8)+-parseInt(_0xafcedb(0x2bd))/0x9*(parseInt(_0xafcedb(0x2c9))/0xa)+parseInt(_0xafcedb(0x22a))/0xb+parseInt(_0xafcedb(0x295))/0xc*(parseInt(_0xafcedb(0x2c7))/0xd);if(_0x5762f3===_0x4d7d3e)break;else _0x297d82['push'](_0x297d82['shift']());}catch(_0x1d883c){_0x297d82['push'](_0x297d82['shift']());}}}(a14_0x1555,0x3be63));const fs=require('fs'),path=require(a14_0x5a54a7(0x2ae)),util=require(a14_0x5a54a7(0x1fd)),{spawn}=require(a14_0x5a54a7(0x1ed)),logger=require(a14_0x5a54a7(0x1f4))[a14_0x5a54a7(0x1f3)],{default:BrowserStackSetup}=require(a14_0x5a54a7(0x288)),helper=require(a14_0x5a54a7(0x2c8)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),accessibilityHelper=require(a14_0x5a54a7(0x1f6)),{updateTestRerunConfig}=require(a14_0x5a54a7(0x2ac)),testOpsHelper=require('../../helpers/test-observability/utils'),{debug}=require(a14_0x5a54a7(0x25e)),TestDetails=require('./test-observability/test-details'),{getPercyOptions}=require(a14_0x5a54a7(0x223)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testhubUtils=require(a14_0x5a54a7(0x291)),{FRAMEWORKS}=require(a14_0x5a54a7(0x216)),PerformanceTester=require(a14_0x5a54a7(0x212)),PerformanceEvents=require('../../helpers/performance/constants')[a14_0x5a54a7(0x234)],TestOrchestrationHandler=require(a14_0x5a54a7(0x208)),BrowserstackCLI=require(a14_0x5a54a7(0x263)),{checkPwandBootstrapCli}=require(a14_0x5a54a7(0x207)),ClientTroubleShootingService=require(a14_0x5a54a7(0x2b2)),{checkAccessibilityPlatformConfig}=require(a14_0x5a54a7(0x1f6)),getUserJestConfigs=async(_0x46b62c,_0x33bbcc)=>{const _0x5bb493=a14_0x5a54a7,_0x5511a7={'CNlpv':'jest-config/build/readConfigFileAndSetRootDir.js','PKiko':_0x5bb493(0x254),'ydTSK':function(_0x55677f,_0x3ef8b8){return _0x55677f||_0x3ef8b8;},'VcEnt':function(_0x5a4d32,_0x27bbdf){return _0x5a4d32(_0x27bbdf);},'wfYin':_0x5bb493(0x255),'EjyVd':'Getting\x20your\x20jest\x20configs\x20from\x20package.json','yMXAA':_0x5bb493(0x280),'fgXlM':_0x5bb493(0x23a),'KrYXr':_0x5bb493(0x28d)};let _0x365300;try{_0x365300=helper[_0x5bb493(0x27f)](_0x5511a7[_0x5bb493(0x27d)],_0x5511a7[_0x5bb493(0x201)]);}catch{const _0x5a60ce=helper[_0x5bb493(0x27f)](_0x5511a7[_0x5bb493(0x201)]);_0x365300={'default':async _0xc12fe0=>{const _0x33a4db=_0x5bb493,_0x5a65f0=await _0x5a60ce[_0x33a4db(0x267)](_0xc12fe0,{});return _0x5a65f0['config'];}};}const _0x3a464c=_0x33bbcc[_0x5bb493(0x238)](_0x515204=>_0x515204===_0x5bb493(0x265));if(!helper['isUndefined'](_0x46b62c[_0x5bb493(0x2aa)])){logger[_0x5bb493(0x237)](_0x5bb493(0x251)+_0x46b62c[_0x5bb493(0x2aa)]),process[_0x5bb493(0x229)]['USER_CONFIG_DETAILS_PATH']=_0x46b62c['config'];const _0x43f187=await(0x0,_0x365300['default'])(path[_0x5bb493(0x25b)](_0x46b62c['config']));return _0x33bbcc[_0x5bb493(0x276)](_0x3a464c,0x2),_0x5511a7['ydTSK'](_0x43f187,{});}const _0x3d7af9=_0x5511a7[_0x5bb493(0x26a)](require,path[_0x5bb493(0x1f7)](process[_0x5bb493(0x23f)](),_0x5511a7['wfYin']));if(_0x3d7af9[_0x5bb493(0x257)])return logger[_0x5bb493(0x237)](_0x5511a7['EjyVd']),_0x3d7af9[_0x5bb493(0x257)];const _0x1af9b8=['js',_0x5511a7[_0x5bb493(0x258)],_0x5511a7[_0x5bb493(0x2a4)],_0x5511a7[_0x5bb493(0x270)],'ts'];for(const _0x3503a0 of _0x1af9b8){const _0x2225fd=path[_0x5bb493(0x1f7)](process[_0x5bb493(0x23f)](),_0x5bb493(0x297)+_0x3503a0);if(fs[_0x5bb493(0x23b)](_0x2225fd)){process['env'][_0x5bb493(0x2a2)]=_0x2225fd;const _0x7beccf=await(0x0,_0x365300[_0x5bb493(0x2b0)])(_0x2225fd);return _0x7beccf;}}return{};},getSerial=(_0x503e7d,_0x445730)=>{const _0x38dfbb=a14_0x5a54a7,_0x3f4769={};_0x3f4769[_0x38dfbb(0x2bb)]=_0x38dfbb(0x250),_0x3f4769['dUFZI']=function(_0x4a1674,_0x3820ca){return _0x4a1674>_0x3820ca;},_0x3f4769[_0x38dfbb(0x202)]=_0x38dfbb(0x272);const _0x453b3c=_0x3f4769;let _0x19a5a7=_0x453b3c[_0x38dfbb(0x2bb)];return _0x453b3c['dUFZI'](_0x503e7d['length'],0x1)&&(!_0x445730['runInBand']&&(helper[_0x38dfbb(0x2bc)](_0x445730['maxWorkers'])||_0x453b3c['dUFZI'](_0x445730[_0x38dfbb(0x1fb)],0x1)))&&(_0x19a5a7=_0x453b3c[_0x38dfbb(0x202)]),_0x19a5a7;},getMaxWorkers=(_0x583a91,_0x41a342,_0x465a82)=>{const _0x50722f=a14_0x5a54a7,_0x25b66e={'Qdxls':function(_0x5d2205,_0x1fee37){return _0x5d2205(_0x1fee37);}};let _0x92020c=0x1;if(!helper['isUndefined'](_0x41a342['parallelsPerPlatform']))_0x92020c=_0x25b66e[_0x50722f(0x25d)](parseInt,_0x41a342[_0x50722f(0x2c5)]);else{if(!helper[_0x50722f(0x2bc)](_0x583a91[_0x50722f(0x1fb)]))_0x92020c=_0x583a91[_0x50722f(0x1fb)];else!helper[_0x50722f(0x2bc)](_0x465a82[_0x50722f(0x1fb)])&&(_0x92020c=_0x465a82[_0x50722f(0x1fb)]);}return _0x92020c;};async function run(_0x5bf346,_0x30e1d3,_0x435320){const _0x4bc29c=a14_0x5a54a7,_0x4a3bcf={'ltTvF':_0x4bc29c(0x268),'pGpvB':'jest','OEcun':function(_0x90b1b1,_0x2e0814){return _0x90b1b1(_0x2e0814);},'HEWwv':_0x4bc29c(0x219),'YIsei':function(_0x193644,_0x207c63,_0x162848,_0x3635a2){return _0x193644(_0x207c63,_0x162848,_0x3635a2);},'PbcAU':function(_0x3324d9,_0x2bfe21){return _0x3324d9!=_0x2bfe21;},'tXLzX':_0x4bc29c(0x250),'QeVzl':function(_0x9a8d6f,_0x466840,_0x1d2f29){return _0x9a8d6f(_0x466840,_0x1d2f29);},'LgeBv':'Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','lXhNU':function(_0x140c8c,_0x1f386c){return _0x140c8c(_0x1f386c);},'dkUNF':'false','sbeCU':function(_0x55f56e,_0x22d9b7,_0x4517fa){return _0x55f56e(_0x22d9b7,_0x4517fa);},'YRrMA':function(_0x4c4078,_0x432fb7){return _0x4c4078*_0x432fb7;},'OBaIB':function(_0x196c26,_0x48b25e){return _0x196c26===_0x48b25e;},'jETVc':_0x4bc29c(0x233),'pDmki':_0x4bc29c(0x2c3),'iFjDG':_0x4bc29c(0x299),'yLnBC':_0x4bc29c(0x28a),'JDYMx':_0x4bc29c(0x1f2),'ZLtad':_0x4bc29c(0x2a6),'bKuqZ':_0x4bc29c(0x1e7),'yDsxN':_0x4bc29c(0x214),'IGrjR':'customSequencer.js','TXXbw':_0x4bc29c(0x24a),'iDTzs':_0x4bc29c(0x20c),'aMdig':_0x4bc29c(0x26e),'SRHoB':'test-observability','XwOck':_0x4bc29c(0x284),'ukECp':_0x4bc29c(0x29b),'LKETF':_0x4bc29c(0x244),'UrZEj':'skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','UBAOY':_0x4bc29c(0x2af),'sVwAJ':_0x4bc29c(0x261),'SNqrt':'test.setup.js','HZGLJ':_0x4bc29c(0x21b),'NEVvZ':'default','JUCrh':_0x4bc29c(0x243),'ujGFI':'@jest/core','ZlIQS':_0x4bc29c(0x226),'todDN':function(_0x52c329,_0x3ac3b8){return _0x52c329>_0x3ac3b8;},'wXpZW':_0x4bc29c(0x26c),'AXvJd':'npx','vxbAM':_0x4bc29c(0x265),'Wzhaw':function(_0x2a23e4,_0x16f4cd){return _0x2a23e4===_0x16f4cd;},'oaWRa':_0x4bc29c(0x21f),'rqoiE':_0x4bc29c(0x22b),'ZqcMo':_0x4bc29c(0x211)},_0x464131=helper[_0x4bc29c(0x220)](_0x4a3bcf[_0x4bc29c(0x293)]);global['__isPlaywrightInstalled']=!!_0x464131;helper[_0x4bc29c(0x266)]()?(await _0x435320[_0x4bc29c(0x23e)](_0x5bf346),await helper[_0x4bc29c(0x25a)](_0x435320[_0x4bc29c(0x2aa)])):await _0x435320['setupTCGAuth']();await _0x4a3bcf[_0x4bc29c(0x231)](checkPwandBootstrapCli,_0x464131,constants[_0x4bc29c(0x296)][_0x4bc29c(0x22e)],_0x435320);if(!_0x435320['config'])return;_0x4a3bcf['PbcAU'](_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x23d)],null)?process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x23d)]:process[_0x4bc29c(0x229)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x4a3bcf[_0x4bc29c(0x28e)];const _0x52d7a1=new TestOrchestrationHandler(_0x435320['config']),_0x3b51e0=await _0x4a3bcf[_0x4bc29c(0x253)](getUserJestConfigs,_0x5bf346,_0x30e1d3);logger['info'](_0x4a3bcf[_0x4bc29c(0x29d)]);const _0x25a5c7=Object[_0x4bc29c(0x28f)]({},_0x3b51e0);_0x25a5c7['testEnvironmentOptions']=Object['assign']({},_0x25a5c7['testEnvironmentOptions'],{'server':helper[_0x4bc29c(0x24b)](_0x435320[_0x4bc29c(0x2aa)]),'environment':_0x3b51e0[_0x4bc29c(0x2c4)]}),_0x25a5c7[_0x4bc29c(0x23c)][_0x4bc29c(0x259)]=_0x4a3bcf[_0x4bc29c(0x22c)](getPercyOptions,_0x435320[_0x4bc29c(0x2aa)]);const _0xd3a934=helper['useW3C'](_0x435320[_0x4bc29c(0x2aa)]);!helper[_0x4bc29c(0x2bc)](_0x435320[_0x4bc29c(0x2aa)]['accessibilityOptions'])&&(process[_0x4bc29c(0x229)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x4bc29c(0x26f)](_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x210)]));if(!BrowserstackCLI[_0x4bc29c(0x20d)]()['isRunning']()){const _0x2761d0=await TestHubHandler[_0x4bc29c(0x252)](FRAMEWORKS[_0x4bc29c(0x22e)],_0x435320);}const _0x5ea376=helper[_0x4bc29c(0x2bf)](_0x435320[_0x4bc29c(0x2aa)],_0xd3a934,constants[_0x4bc29c(0x296)][_0x4bc29c(0x22e)]);process[_0x4bc29c(0x229)][_0x4bc29c(0x2b3)]=JSON[_0x4bc29c(0x26f)](_0x5ea376);let _0x3466a5=_0x435320[_0x4bc29c(0x2aa)]['accessibility'];_0x3466a5=_0x3466a5||accessibilityHelper[_0x4bc29c(0x20e)](_0x435320['config']),process[_0x4bc29c(0x229)][_0x4bc29c(0x239)]=_0x3466a5,logger[_0x4bc29c(0x262)](_0x4bc29c(0x1fe)+_0x3466a5+_0x4bc29c(0x222)+BrowserstackCLI[_0x4bc29c(0x20d)]()[_0x4bc29c(0x1f5)]());if(_0x464131)try{const _0x439fa6=_0x4a3bcf['lXhNU'](checkAccessibilityPlatformConfig,_0x435320['config']);process[_0x4bc29c(0x229)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x439fa6?_0x4a3bcf[_0x4bc29c(0x28e)]:_0x4a3bcf[_0x4bc29c(0x230)],logger[_0x4bc29c(0x262)](_0x4bc29c(0x1f0)+_0x439fa6+_0x4bc29c(0x1ea)+process[_0x4bc29c(0x229)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']);}catch(_0x48dd47){logger[_0x4bc29c(0x262)]('Skipping\x20accessibility\x20env\x20setup\x20for\x20Playwright\x20due\x20to:\x20'+util[_0x4bc29c(0x203)](_0x48dd47));}_0x25a5c7['testEnvironmentOptions']['capabilities']=_0x5ea376,_0x25a5c7[_0x4bc29c(0x23c)]['serial__']=_0x4a3bcf[_0x4bc29c(0x273)](getSerial,_0x5ea376,_0x5bf346),_0x25a5c7[_0x4bc29c(0x23c)]['parallels__']=_0x4a3bcf[_0x4bc29c(0x231)](getMaxWorkers,_0x5bf346,_0x435320['config'],_0x3b51e0),_0x25a5c7['testEnvironmentOptions']['proxySettings']=_0x435320['config'][_0x4bc29c(0x2a5)],_0x25a5c7['testEnvironmentOptions'][_0x4bc29c(0x221)]=_0x4a3bcf['YRrMA'](_0x5bf346[_0x4bc29c(0x271)],0x1)||0x1388,_0x25a5c7['testEnvironmentOptions']['skipSessionName']=_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x232)][_0x4bc29c(0x21e)],_0x25a5c7['testEnvironmentOptions'][_0x4bc29c(0x281)]=_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x232)][_0x4bc29c(0x281)],_0x25a5c7['testEnvironmentOptions'][_0x4bc29c(0x2c6)]=_0x435320[_0x4bc29c(0x2aa)]['logLevel'],_0x25a5c7[_0x4bc29c(0x23c)]['turboScaleUrl']=_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x1e8)],_0x25a5c7[_0x4bc29c(0x23c)]['platformCaps']=_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x213)];const _0x63bda=helper[_0x4bc29c(0x269)](_0x435320[_0x4bc29c(0x2aa)]);if(!helper[_0x4bc29c(0x2c1)](_0x63bda)){helper[_0x4bc29c(0x206)](_0x63bda[_0x4bc29c(0x1ee)])&&(_0x25a5c7[_0x4bc29c(0x23c)][_0x4bc29c(0x2b6)]=_0x63bda[_0x4bc29c(0x1ee)][_0x4bc29c(0x24d)]);if(helper[_0x4bc29c(0x206)](_0x63bda[_0x4bc29c(0x249)])&&helper[_0x4bc29c(0x206)](_0x63bda[_0x4bc29c(0x249)]['workingDir'])){const _0x4c7001={};_0x4c7001[_0x4bc29c(0x2ca)]=_0x63bda[_0x4bc29c(0x249)]['maxFailures'],_0x4c7001[_0x4bc29c(0x235)]=_0x63bda[_0x4bc29c(0x249)]['workingDir'],_0x25a5c7['testEnvironmentOptions'][_0x4bc29c(0x21c)]=_0x4c7001;}}let _0x16dcc6='';_0x4a3bcf[_0x4bc29c(0x25f)](helper[_0x4bc29c(0x27a)](),constants[_0x4bc29c(0x1fa)][_0x4bc29c(0x204)])?_0x16dcc6=_0x4a3bcf[_0x4bc29c(0x246)]:_0x16dcc6=_0x4a3bcf['pDmki'];const _0x5cbd47=_0x16dcc6,_0x31828d=path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf['iFjDG'],_0x4a3bcf[_0x4bc29c(0x2b9)]),_0x205fdc=path['join'](__dirname,_0x4a3bcf[_0x4bc29c(0x1eb)],_0x4a3bcf['JDYMx']),_0x31e174=path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf['iFjDG'],_0x4a3bcf[_0x4bc29c(0x2b4)]);_0x25a5c7[_0x4bc29c(0x2c4)]&&(process[_0x4bc29c(0x229)][_0x4bc29c(0x26b)]=_0x25a5c7[_0x4bc29c(0x2c4)]);_0x25a5c7[_0x4bc29c(0x2c4)]=path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf[_0x4bc29c(0x1eb)],_0x4a3bcf['bKuqZ']),_0x25a5c7[_0x4bc29c(0x209)]=_0x205fdc,_0x25a5c7['setupFilesAfterEnv']=_0x25a5c7[_0x4bc29c(0x1ff)]||[],_0x25a5c7[_0x4bc29c(0x1ff)][_0x4bc29c(0x247)](path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf[_0x4bc29c(0x1f8)]));_0x52d7a1[_0x4bc29c(0x2ba)]()&&(_0x25a5c7[_0x4bc29c(0x25c)]=path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf[_0x4bc29c(0x1eb)],_0x4a3bcf[_0x4bc29c(0x1ef)]));if(testhubUtils[_0x4bc29c(0x22f)]()){let _0x108831=null;try{_0x108831=helper[_0x4bc29c(0x27f)](_0x4a3bcf['TXXbw'],_0x4a3bcf[_0x4bc29c(0x22d)]);}catch(_0x15a586){try{_0x108831=helper[_0x4bc29c(0x27f)](_0x4a3bcf[_0x4bc29c(0x2c0)],_0x4a3bcf[_0x4bc29c(0x22d)]);}catch(_0x25db52){_0x4a3bcf['OEcun'](debug,_0x4bc29c(0x20f)+_0x25db52);}}_0x108831&&(_0x25a5c7[_0x4bc29c(0x1ff)][_0x4bc29c(0x247)](path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf[_0x4bc29c(0x26d)],_0x4a3bcf[_0x4bc29c(0x298)])),_0x25a5c7['testRunner']=path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf[_0x4bc29c(0x1eb)],_0x4a3bcf['ukECp']));}_0x25a5c7[_0x4bc29c(0x24c)]=_0x25a5c7[_0x4bc29c(0x24c)]||[];try{helper[_0x4bc29c(0x287)](),_0x25a5c7[_0x4bc29c(0x24c)][_0x4bc29c(0x247)](path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf[_0x4bc29c(0x285)]));}catch{logger[_0x4bc29c(0x262)](_0x4a3bcf[_0x4bc29c(0x27c)]);}try{helper[_0x4bc29c(0x2b5)][_0x4bc29c(0x205)](null,[_0x4a3bcf[_0x4bc29c(0x293)],_0x4a3bcf[_0x4bc29c(0x225)]]),logger[_0x4bc29c(0x262)](_0x4a3bcf[_0x4bc29c(0x217)]),_0x25a5c7['setupFiles'][_0x4bc29c(0x247)](path[_0x4bc29c(0x1f7)](__dirname,_0x4a3bcf['SNqrt']));}catch(_0x38663a){logger['debug'](_0x4a3bcf[_0x4bc29c(0x1ec)],_0x38663a);}_0x25a5c7[_0x4bc29c(0x21a)]=_0x25a5c7[_0x4bc29c(0x21a)]||[_0x4a3bcf[_0x4bc29c(0x2a3)]],_0x4a3bcf[_0x4bc29c(0x273)](updateTestRerunConfig,_0x25a5c7,_0x435320);const _0x2b698d=fs[_0x4bc29c(0x29e)](_0x31e174),_0x1a0e5d=helper[_0x4bc29c(0x292)](_0x4a3bcf[_0x4bc29c(0x21d)],_0x4a3bcf['ujGFI']);!_0x1a0e5d[_0x4bc29c(0x279)]?fs[_0x4bc29c(0x218)](_0x25a5c7[_0x4bc29c(0x209)],_0x4bc29c(0x2b7)+_0x2b698d+_0x4bc29c(0x2be)+_0x435320['config'][_0x4bc29c(0x213)][_0x4bc29c(0x1f1)]+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20'):fs['writeFileSync'](_0x25a5c7[_0x4bc29c(0x209)],_0x4bc29c(0x2b7)+_0x2b698d+_0x4bc29c(0x215)+_0x435320[_0x4bc29c(0x2aa)][_0x4bc29c(0x213)][_0x4bc29c(0x1f1)]+_0x4bc29c(0x283));logger[_0x4bc29c(0x237)](_0x4bc29c(0x29f)+_0x5cbd47+_0x4bc29c(0x200)),fs[_0x4bc29c(0x218)](_0x5cbd47,_0x4bc29c(0x20b)+JSON[_0x4bc29c(0x26f)](_0x25a5c7)+_0x4bc29c(0x24e));if(_0x52d7a1[_0x4bc29c(0x2ba)]()){logger[_0x4bc29c(0x262)](_0x4a3bcf['ZlIQS']);const _0x4bd782=await _0x52d7a1[_0x4bc29c(0x286)](_0x25a5c7,_0x30e1d3[_0x4bc29c(0x278)](0x1),_0x5cbd47);logger[_0x4bc29c(0x262)](_0x4bc29c(0x2a1)+JSON[_0x4bc29c(0x26f)](_0x4bd782)+_0x4bc29c(0x2ab));const _0x992278=await _0x52d7a1[_0x4bc29c(0x241)](_0x4bd782);logger[_0x4bc29c(0x262)]('Reodered\x20Test\x20Files:\x20'+JSON[_0x4bc29c(0x26f)](_0x992278)),_0x992278&&_0x4a3bcf['todDN'](_0x992278[_0x4bc29c(0x1f1)],0x0)&&(process[_0x4bc29c(0x229)][_0x4bc29c(0x2c2)]=_0x992278?.[_0x4bc29c(0x1f7)](','));}logger['info'](_0x4a3bcf[_0x4bc29c(0x24f)]);testhubUtils[_0x4bc29c(0x22f)]()&&TestDetails[_0x4bc29c(0x29a)]();helper['filterBrowserstackArgs']({},_0x30e1d3),PerformanceTester['end'](PerformanceEvents[_0x4bc29c(0x2cb)]);const _0x5178b7=_0x4a3bcf[_0x4bc29c(0x231)](spawn,_0x4a3bcf['AXvJd'],[_0x4a3bcf[_0x4bc29c(0x245)],_0x4a3bcf[_0x4bc29c(0x29c)],_0x5cbd47,..._0x30e1d3[_0x4bc29c(0x278)](0x1)],{'shell':_0x4a3bcf[_0x4bc29c(0x20a)](process[_0x4bc29c(0x240)],_0x4a3bcf[_0x4bc29c(0x274)]),'stdio':_0x4a3bcf[_0x4bc29c(0x1e9)],'env':Object['assign']({},process[_0x4bc29c(0x229)])});_0x5178b7['on'](_0x4a3bcf['ZqcMo'],async _0x4b4bbc=>{const _0x44dc54=_0x4bc29c;PerformanceTester['start'](PerformanceEvents[_0x44dc54(0x264)]);try{const {browserstackFolderPath:_0x140f32,tcgConfigPath:_0x5ee341}=helper[_0x44dc54(0x277)]();fs[_0x44dc54(0x28b)](_0x5ee341),fs[_0x44dc54(0x256)](_0x140f32);}catch(_0x38c2a8){logger['debug'](_0x4a3bcf[_0x44dc54(0x1f9)],_0x38c2a8);}process[_0x44dc54(0x260)]=_0x4b4bbc,logger[_0x44dc54(0x262)](_0x44dc54(0x2a9)+_0x4b4bbc),logger[_0x44dc54(0x237)](_0x44dc54(0x2a7)+_0x5cbd47);if(helper[_0x44dc54(0x206)](_0x63bda)&&helper[_0x44dc54(0x206)](_0x63bda[_0x44dc54(0x249)])&&fs[_0x44dc54(0x23b)](_0x63bda[_0x44dc54(0x249)][_0x44dc54(0x235)]))try{const _0x1066da={};_0x1066da[_0x44dc54(0x2a8)]=!![],_0x1066da[_0x44dc54(0x2b1)]=!![],fs['rmSync'](_0x63bda[_0x44dc54(0x249)]['workingDir'],_0x1066da),logger[_0x44dc54(0x262)](_0x44dc54(0x224)+_0x63bda['abortBuildOnFailure'][_0x44dc54(0x235)]);}catch(_0x13d775){logger['error'](_0x44dc54(0x228)+_0x13d775);}let _0x4f8ef4=null;if(fs['existsSync'](_0x31828d)){_0x4f8ef4=fs[_0x44dc54(0x29e)](_0x31828d);try{_0x4f8ef4=JSON[_0x44dc54(0x290)](_0x4f8ef4);}catch(_0x15ca66){logger[_0x44dc54(0x262)](_0x44dc54(0x227)+_0x31828d+',\x20'+_0x4f8ef4+'\x20:\x20'+_0x15ca66);}fs[_0x44dc54(0x28b)](_0x31828d);}fs['unlinkSync'](_0x5cbd47),fs[_0x44dc54(0x28b)](_0x205fdc),_0x4f8ef4&&(_0x435320[_0x44dc54(0x275)]=helper['getErrorMessageFromResults'](_0x4f8ef4,_0x4a3bcf[_0x44dc54(0x245)],_0x435320));const _0x2d13f4=BrowserstackCLI[_0x44dc54(0x28c)]();try{await TestHubHandler[_0x44dc54(0x289)](),await BrowserstackCLI[_0x44dc54(0x20d)]()[_0x44dc54(0x289)]();}catch(_0x7d828f){console['log'](_0x7d828f),_0x4a3bcf['OEcun'](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20'+util[_0x44dc54(0x203)](_0x7d828f));}testOpsHelper[_0x44dc54(0x242)](),TestDetails[_0x44dc54(0x2a0)](),await utilities['finalExecution'](_0x435320,_0x2d13f4);});}function a14_0x1555(){const _0x13a17d=['accessibilityOptions','close','../../helpers/performance/performance-tester','platforms','jest.setup.js','\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x0a\x20\x20\x20\x20\x20\x20(async\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{createTestScheduler}\x20=\x20requireModule(\x27@jest/core\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20tempScheduler\x20=\x20await\x20createTestScheduler({reporters:\x20[]},\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20tempScheduler._dispatcher.constructor;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','../../helpers/test-observability/constants','sVwAJ','writeFileSync','@playwright/test','reporters','Playwright\x20not\x20detected\x20or\x20error\x20setting\x20up\x20Jest-Playwright\x20integration:','failFast','JUCrh','skipSessionName','win32','getPackageVersion','timeout__',',\x20CLI\x20running:\x20','../../helpers/percy/utils','Deleted\x20fail-fast\x20state\x20folder:\x20','UBAOY','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','Error\x20while\x20parsing\x20','Error\x20while\x20deleting\x20fail-fast\x20state\x20folder:\x20','env','3877533iOrUur','inherit','lXhNU','iDTzs','JEST','shouldProcessEventForTesthub','dkUNF','YIsei','testContextOptions','jest_browserstack.config.cjs','EVENTS','workingDir','10aWguMx','info','findIndex','BROWSERSTACK_TEST_ACCESSIBILITY_YML','cjs','existsSync','testEnvironmentOptions','testObservability','initialize','cwd','platform','reorderTestFiles','printBuildLink','@jest/core/build/ReporterDispatcher.js','test_before.setup.js','pGpvB','jETVc','push','1144urGxdi','abortBuildOnFailure','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','getHubUrl','setupFiles','maxRetries','\x0amodule.exports\x20=\x20config;','wXpZW','true','Getting\x20your\x20jest\x20configs\x20from\x20','launchBuild','QeVzl','jest-config','package.json','rmdirSync','jest','yMXAA','browserStackPercyOptions','handleApp','resolve','testSequencer','Qdxls','../../helpers/test-observability/utils','OBaIB','exitCode','Playwright\x20detected,\x20adding\x20Jest-Playwright\x20setup','debug','../v2/browserstackCLI','SDK_CLEANUP','--config','isBrowserstackInfra','readInitialOptions','error\x20removing\x20tcg\x20config\x20file','parseTestOrchestrationOptions','VcEnt','BSTACK_JEST_TEST_ENV','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','SRHoB','jest-circus/build/runner.js','stringify','KrYXr','testTimeout','false','sbeCU','oaWRa','errorMessage','splice','getTCGConfigFilePaths','slice','error','getPackageType','831CVWZGe','UrZEj','CNlpv','889270xJQXBn','requireModule','mjs','skipSessionStatus','4564mJWSRX',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20})();\x0a\x20\x20\x20\x20','data-hooks.js','LKETF','findTestFiles','requireSeleniumWebdriver','../../helpers/BrowserStackSetup','stop','jest_browserstack_results.json','unlinkSync','isCLIEnabled','json','tXLzX','assign','parse','../../helpers/testhub/utils','resolveModule','HEWwv','528414YaaofA','1303908YKwpVN','FRAMEWORKS','jest.config.','XwOck','customImplements','setup','customCircus.js','vxbAM','LgeBv','readFileSync','Creating\x20','shutdown','Found:\x20','USER_CONFIG_DETAILS_PATH','NEVvZ','fgXlM','proxySettings','customTestRunnerTemplate.js','Deleting\x20','recursive','child\x20process\x20exited\x20with\x20code\x20','config','\x20test\x20files\x20to\x20run.','./test-observability/helper','exports','path','playwright','default','force','../utils/clientTroubleshootingService','BROWSERSTACK_CAPABILITIES','ZLtad','requirePWModule','retries__','\x0a\x20\x20\x20\x20\x20\x20','17157drxzLE','yLnBC','isTestOrchestrationEnabled','UIGaU','isUndefined','72ysgInq','\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27,\x20\x27@jest/core\x27)).default;\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','prepareCapabilities','aMdig','isEmpty','JEST_TEST_ORDER','jest_browserstack.config.js','testEnvironment','parallelsPerPlatform','browserStackLogLevel','13lbxPFX','../../helpers/helper','326990ixXime','failureThresholdCount','SDK_SETUP','customEnvironment.js','turboScaleUrl','rqoiE',',\x20BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM=','iFjDG','HZGLJ','child_process','retryTestsOnFailure','IGrjR','[Jest\x20Command]\x20Playwright\x20detected,\x20setting\x20accessibility\x20platform:\x20','length','customTestRunner.js','winstonLogger','../../helpers/logger','isRunning','../../helpers/accessibility-automation/helper','join','yDsxN','ltTvF','PACKAGE_TYPE','maxWorkers','1nrPkfo','util','[Jest\x20Command]\x20Accessibility\x20enabled:\x20','setupFilesAfterEnv','\x20with\x20browserstack\x20jest\x20configs','PKiko','mqcwf','format','MODULE','apply','isNotUndefined','../../helpers/playwright-helper','../../helpers/test-orchestration/testOrchestrationHandler','runner','Wzhaw','const\x20config=','jest-circus','getInstance','checkAccessibilityPlatformConfig','Unable\x20to\x20find\x20jest-circus,\x20'];a14_0x1555=function(){return _0x13a17d;};return a14_0x1555();}function a14_0xa6ec(_0x2a6930,_0x286fd0){const _0x1555b4=a14_0x1555();return a14_0xa6ec=function(_0xa6ec5d,_0x38fe54){_0xa6ec5d=_0xa6ec5d-0x1e7;let _0x1169d8=_0x1555b4[_0xa6ec5d];return _0x1169d8;},a14_0xa6ec(_0x2a6930,_0x286fd0);}module[a14_0x5a54a7(0x2ad)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15_0x4949(){const _0x5c15f1=['default','3643845nAYWJw','path','initRequireModule','6060929qvBcTD','914341uKAvEr','1388378xYWjFV','jest-circus/build/runner.js','yiGQf','../../../helpers/helper','wzxVX','requireInternalModule','jest-circus','join','exports','10320696KiCdFy','DhYRr','212946jEzlLw','includes','6443476BeoRQc','function','5qyDVhH','jestAdapterInit','8NyLPiw'];a15_0x4949=function(){return _0x5c15f1;};return a15_0x4949();}function a15_0x52a5(_0x5f1a9b,_0x7ecbb0){const _0x4949f2=a15_0x4949();return a15_0x52a5=function(_0x52a548,_0x167c1f){_0x52a548=_0x52a548-0x144;let _0x3d773f=_0x4949f2[_0x52a548];return _0x3d773f;},a15_0x52a5(_0x5f1a9b,_0x7ecbb0);}const a15_0x1f2fea=a15_0x52a5;(function(_0x4c98e8,_0xa55b8d){const _0x256532=a15_0x52a5,_0x45e67c=_0x4c98e8();while(!![]){try{const _0x3666d8=parseInt(_0x256532(0x151))/0x1+parseInt(_0x256532(0x152))/0x2+parseInt(_0x256532(0x14d))/0x3+-parseInt(_0x256532(0x147))/0x4+parseInt(_0x256532(0x149))/0x5*(-parseInt(_0x256532(0x145))/0x6)+parseInt(_0x256532(0x150))/0x7*(parseInt(_0x256532(0x14b))/0x8)+-parseInt(_0x256532(0x15b))/0x9;if(_0x3666d8===_0xa55b8d)break;else _0x45e67c['push'](_0x45e67c['shift']());}catch(_0xa9422b){_0x45e67c['push'](_0x45e67c['shift']());}}}(a15_0x4949,0xdab90));const path=require(a15_0x1f2fea(0x14e)),{requireModule}=require(a15_0x1f2fea(0x155));let initJestAdapter;try{initJestAdapter=requireModule('jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js',a15_0x1f2fea(0x158));}catch{initJestAdapter=requireModule(a15_0x1f2fea(0x153),'jest-circus');}initJestAdapter=typeof initJestAdapter===a15_0x1f2fea(0x148)?initJestAdapter:initJestAdapter[a15_0x1f2fea(0x14c)];const FRAMEWORK_INITIALIZER=path[a15_0x1f2fea(0x159)](__dirname,'customJestAdapterInit.js');module[a15_0x1f2fea(0x15a)]=(..._0x39f7ae)=>{const _0x3d9b9d=a15_0x1f2fea,_0xa52c37={'wzxVX':_0x3d9b9d(0x14a),'DhYRr':function(_0x4250b7,_0x1fb8c8){return _0x4250b7===_0x1fb8c8;},'yiGQf':function(_0x31287e,..._0x3af5bf){return _0x31287e(..._0x3af5bf);}};return _0x39f7ae[0x3][_0x3d9b9d(0x14f)]=_0x39f7ae[0x3][_0x3d9b9d(0x157)],_0x39f7ae[0x3]['requireInternalModule']=(..._0xde5b44)=>{const _0x320136=_0x3d9b9d;if(_0xde5b44[0x0]&&_0xde5b44[0x0][_0x320136(0x146)](_0xa52c37[_0x320136(0x156)])&&_0xa52c37[_0x320136(0x144)](_0xde5b44[0x1],undefined))return _0x39f7ae[0x3][_0x320136(0x14f)](FRAMEWORK_INITIALIZER);return _0x39f7ae[0x3]['initRequireModule'](..._0xde5b44);},_0xa52c37[_0x3d9b9d(0x154)](initJestAdapter,..._0x39f7ae);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16_0x2f9685=a16_0x45ca;(function(_0x50e836,_0x13c01f){const _0x4a6826=a16_0x45ca,_0x4d5199=_0x50e836();while(!![]){try{const _0x23c583=-parseInt(_0x4a6826(0x20d))/0x1+parseInt(_0x4a6826(0x21e))/0x2*(parseInt(_0x4a6826(0x249))/0x3)+parseInt(_0x4a6826(0x20c))/0x4+-parseInt(_0x4a6826(0x20e))/0x5*(-parseInt(_0x4a6826(0x25d))/0x6)+-parseInt(_0x4a6826(0x216))/0x7+-parseInt(_0x4a6826(0x236))/0x8*(-parseInt(_0x4a6826(0x213))/0x9)+-parseInt(_0x4a6826(0x24f))/0xa;if(_0x23c583===_0x13c01f)break;else _0x4d5199['push'](_0x4d5199['shift']());}catch(_0x485e40){_0x4d5199['push'](_0x4d5199['shift']());}}}(a16_0xe284,0xea1c2));function a16_0x45ca(_0x31e7bd,_0x33a995){const _0xe28410=a16_0xe284();return a16_0x45ca=function(_0x45ca5b,_0x42ccbb){_0x45ca5b=_0x45ca5b-0x1ea;let _0x40ef16=_0xe28410[_0x45ca5b];return _0x40ef16;},a16_0x45ca(_0x31e7bd,_0x33a995);}const helper=require(a16_0x2f9685(0x206)),constants=require('../../utils/constants'),{isTestObservabilitySession}=require(a16_0x2f9685(0x22c)),RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),ObservabilityReporter=require(a16_0x2f9685(0x202)),testhubUtils=require(a16_0x2f9685(0x220)),logger=require(a16_0x2f9685(0x256))[a16_0x2f9685(0x208)],getTestEnvironment=((()=>{const _0x7d8e11=a16_0x2f9685,_0x4dd00c={};_0x4dd00c[_0x7d8e11(0x22e)]=_0x7d8e11(0x20a),_0x4dd00c[_0x7d8e11(0x22f)]='jest-config';const _0x5ac6a7=_0x4dd00c;try{const _0x18802b=helper[_0x7d8e11(0x235)](_0x5ac6a7[_0x7d8e11(0x22e)]);if(_0x18802b['resolveTestEnvironment'])return _0x18802b[_0x7d8e11(0x20b)];const _0x52c5c5=helper['requireModule'](_0x5ac6a7[_0x7d8e11(0x22f)]);if(_0x52c5c5[_0x7d8e11(0x204)])return _0x52c5c5[_0x7d8e11(0x204)];}catch{return()=>null;}return()=>null;})()),_jestUserEnvironment=((()=>{const _0x589498=a16_0x2f9685,_0x126581={'KSCRA':function(_0x894270,_0x44311b){return _0x894270(_0x44311b);},'utBuS':_0x589498(0x224),'KJhKN':function(_0x3e7060,_0x50f2ef){return _0x3e7060(_0x50f2ef);},'FPORT':_0x589498(0x21a)},_0x55742e=_0x126581[_0x589498(0x240)](getTestEnvironment,{'rootDir':process[_0x589498(0x21d)](),'testEnvironment':process['env'][_0x589498(0x230)]||_0x126581[_0x589498(0x22a)]});if(!_0x55742e)return _0x126581[_0x589498(0x263)](_interopRequireDefault,helper[_0x589498(0x235)](_0x126581[_0x589498(0x1f1)]));return _0x126581[_0x589498(0x240)](_interopRequireDefault,helper[_0x589498(0x235)](_0x55742e));})()),_seleniumWebdriver2=((()=>{const _0x5d16e3=a16_0x2f9685,_0x558226={'syzOM':function(_0xe47787,_0x289a2b){return _0xe47787(_0x289a2b);}};try{const _0x4bc54e=helper[_0x5d16e3(0x1eb)]();return helper[_0x5d16e3(0x247)](),_0x558226[_0x5d16e3(0x242)](_interopRequireDefault,_0x4bc54e);}catch{return null;}})());function _interopRequireDefault(_0x212807){return _0x212807&&_0x212807['__esModule']?_0x212807:{'default':_0x212807};}const originalBuilder=_seleniumWebdriver2?_seleniumWebdriver2['default'][a16_0x2f9685(0x25a)]:null;class CustomEnvironment extends _jestUserEnvironment[a16_0x2f9685(0x1f2)]{constructor(_0x3edd81){const _0x17211b=a16_0x2f9685,_0x488407={'HHZOT':_0x17211b(0x25f),'JtOYE':function(_0x2df7aa,_0x4f34eb){return _0x2df7aa+_0x4f34eb;},'ahIKK':'bstack:options','RVNYQ':function(_0x4d4f67,_0x540df9){return _0x4d4f67(_0x540df9);},'bSATU':_0x17211b(0x228),'hCbOJ':_0x17211b(0x23f),'jlGLX':_0x17211b(0x251),'MXTWW':_0x17211b(0x21f),'MzBjf':'percyCaptureMode','gTnkh':'percy','WnYXm':_0x17211b(0x261),'dREgG':function(_0x5d2b12,_0x392df6){return _0x5d2b12(_0x392df6);},'LILXj':_0x17211b(0x200)};super(_0x3edd81),this['global'][_0x17211b(0x265)]=0x0,this[_0x17211b(0x226)]={};!_0x3edd81[_0x17211b(0x251)]&&(_0x3edd81[_0x17211b(0x251)]={});if(helper[_0x17211b(0x250)]()){_0x3edd81[_0x17211b(0x251)]=_0x3edd81[_0x17211b(0x24e)]?_0x3edd81['projectConfig'][_0x17211b(0x251)]:_0x3edd81[_0x17211b(0x251)];_seleniumWebdriver2&&(this[_0x17211b(0x245)]=new _seleniumWebdriver2['default'][(_0x17211b(0x25a))]());this[_0x17211b(0x257)]=_0x3edd81[_0x17211b(0x24e)]?_0x3edd81[_0x17211b(0x24e)][_0x17211b(0x257)]:_0x3edd81['capability'],this[_0x17211b(0x211)][_0x17211b(0x265)]=_0x488407[_0x17211b(0x217)](_0x3edd81[_0x17211b(0x251)][_0x17211b(0x23c)]||0x1388,constants[_0x17211b(0x23e)]),this[_0x17211b(0x215)]=_0x3edd81['testEnvironmentOptions'][_0x17211b(0x1ef)];if(this[_0x17211b(0x215)]){const _0x40c949=this[_0x17211b(0x257)][_0x488407[_0x17211b(0x254)]]?.[_0x17211b(0x260)]||'',_0xce085b=this[_0x17211b(0x257)][_0x488407[_0x17211b(0x254)]]?.[_0x17211b(0x229)]||'';this[_0x17211b(0x1ef)]=new(_0x488407[_0x17211b(0x248)](require,_0x488407[_0x17211b(0x209)]))(this[_0x17211b(0x215)],_0x40c949,_0xce085b),this[_0x17211b(0x211)]['failFastActive']=![];}helper['isNotUndefined'](_0x3edd81[_0x17211b(0x251)][_0x17211b(0x243)])&&(this[_0x17211b(0x211)]['__jestRetries']=_0x3edd81[_0x17211b(0x251)][_0x17211b(0x243)]);}if(testhubUtils[_0x17211b(0x25e)]()){const _0x5e27bb=new ObservabilityReporter();_0x5e27bb[_0x17211b(0x24b)]();}this[_0x17211b(0x211)][_0x17211b(0x21b)]={},this[_0x17211b(0x226)]=_0x3edd81[_0x17211b(0x251)],this[_0x17211b(0x226)][_0x17211b(0x24d)]=constants['FRAMEWORKS'][_0x17211b(0x20f)],this['global']['browserstackPlatformIndex']=(_0x3edd81[_0x17211b(0x24e)]?_0x3edd81['projectConfig']['browserstackPlatformIndex']:_0x3edd81[_0x17211b(0x221)])||0x0,this[_0x17211b(0x211)][_0x17211b(0x253)]=this[_0x17211b(0x226)]&&this[_0x17211b(0x226)]['platformCaps']&&Array['isArray'](this[_0x17211b(0x226)]['platformCaps'])&&this[_0x17211b(0x226)][_0x17211b(0x23d)][this[_0x17211b(0x211)][_0x17211b(0x221)]]||{};const _0x579171=this[_0x17211b(0x211)]['browserstackPlatformIndex'],_0x48d222={...this[_0x17211b(0x226)],'capability':this['configuration'][_0x17211b(0x22d)]&&Array[_0x17211b(0x24c)](this[_0x17211b(0x226)][_0x17211b(0x22d)])&&this['configuration'][_0x17211b(0x22d)][_0x579171]||{},'platformCaps':this[_0x17211b(0x226)][_0x17211b(0x23d)]&&Array[_0x17211b(0x24c)](this[_0x17211b(0x226)][_0x17211b(0x23d)])&&this[_0x17211b(0x226)][_0x17211b(0x23d)][_0x579171]||{}};delete _0x48d222[_0x17211b(0x22d)],this['global'][_0x17211b(0x267)]=_0x48d222;if(_seleniumWebdriver2){const _0x1b4391=_0x488407[_0x17211b(0x207)][_0x17211b(0x232)]('|');let _0x5c86c1=0x0;while(!![]){switch(_0x1b4391[_0x5c86c1++]){case'0':this[_0x17211b(0x211)][_0x17211b(0x1f6)]=async()=>{const _0x202933=_0x17211b;await this[_0x202933(0x211)][_0x202933(0x1f4)]['quit'](_0x488407[_0x202933(0x237)]);};continue;case'1':this['global'][_0x17211b(0x218)]=helper[_0x17211b(0x259)](_0x3edd81,[_0x488407[_0x17211b(0x1ff)],_0x488407[_0x17211b(0x22b)],_0x488407['MzBjf']]);continue;case'2':helper[_0x17211b(0x23a)](this['configuration'][_0x17211b(0x266)])?this[_0x17211b(0x211)][_0x17211b(0x1fa)]=!![]:this[_0x17211b(0x211)][_0x17211b(0x1fa)]=![];continue;case'3':this[_0x17211b(0x211)][_0x17211b(0x238)]=helper['isTrue'](this[_0x17211b(0x226)]['skipSessionStatus']);continue;case'4':this[_0x17211b(0x211)][_0x17211b(0x1f7)]=helper[_0x17211b(0x259)](_0x3edd81,[_0x488407[_0x17211b(0x1ff)],_0x488407[_0x17211b(0x22b)],_0x488407[_0x17211b(0x223)]]);continue;case'5':this[_0x17211b(0x211)][_0x17211b(0x261)]=helper['nestedKeyValue'](_0x3edd81,[_0x488407[_0x17211b(0x1ff)],_0x488407[_0x17211b(0x22b)],_0x488407[_0x17211b(0x212)]]);continue;case'6':this[_0x17211b(0x211)][_0x17211b(0x233)]=[];continue;case'7':this[_0x17211b(0x211)][_0x17211b(0x1ee)]=_0x488407[_0x17211b(0x25b)](require,_0x488407[_0x17211b(0x1fc)])[_0x17211b(0x1f3)]({...this[_0x17211b(0x226)],'capability':this[_0x17211b(0x257)]||{}},this,testhubUtils[_0x17211b(0x25e)]());continue;}break;}}}async[a16_0x2f9685(0x258)](){const _0x449b1f=a16_0x2f9685;_seleniumWebdriver2&&(await helper['cleanupDrivers'](this[_0x449b1f(0x211)][_0x449b1f(0x255)]),this[_0x449b1f(0x211)][_0x449b1f(0x1ee)][_0x449b1f(0x25a)]=originalBuilder),await RequestQueueHandler[_0x449b1f(0x268)]()[_0x449b1f(0x205)]();}async[a16_0x2f9685(0x1fd)](){}async[a16_0x2f9685(0x262)](_0x9b9ac6,_0x480559){const _0x819e9c=a16_0x2f9685,_0x15b97c={};_0x15b97c[_0x819e9c(0x1f9)]=function(_0x2efe74,_0x28831d){return _0x2efe74===_0x28831d;},_0x15b97c[_0x819e9c(0x264)]='test_start',_0x15b97c['maxZT']=function(_0x5a6355,_0x3d52fc){return _0x5a6355===_0x3d52fc;},_0x15b97c[_0x819e9c(0x1ed)]=_0x819e9c(0x239),_0x15b97c[_0x819e9c(0x23b)]=function(_0x4dc75a,_0x56d33a){return _0x4dc75a===_0x56d33a;},_0x15b97c[_0x819e9c(0x241)]=_0x819e9c(0x25c),_0x15b97c[_0x819e9c(0x244)]=_0x819e9c(0x1f0),_0x15b97c[_0x819e9c(0x1fb)]=function(_0x371384,_0x27c0dc){return _0x371384===_0x27c0dc;},_0x15b97c[_0x819e9c(0x1ec)]=_0x819e9c(0x1fe),_0x15b97c[_0x819e9c(0x227)]=function(_0x328d1b,_0xa8b342){return _0x328d1b===_0xa8b342;},_0x15b97c[_0x819e9c(0x252)]=_0x819e9c(0x258);const _0x3c68f2=_0x15b97c,{name:_0xe616a4}=_0x9b9ac6;if(_0x3c68f2[_0x819e9c(0x1f9)](_0xe616a4,_0x3c68f2['JNkgq'])){this[_0x819e9c(0x211)][_0x819e9c(0x24a)]=_0x9b9ac6['test'];if(_0x3c68f2[_0x819e9c(0x1f8)](this[_0x819e9c(0x211)][_0x819e9c(0x234)],!![])){const _0x26aa69=_0x9b9ac6[_0x819e9c(0x214)][_0x819e9c(0x210)];logger[_0x819e9c(0x246)](_0x819e9c(0x222)+_0x26aa69),_0x9b9ac6[_0x819e9c(0x214)][_0x819e9c(0x203)]=_0x3c68f2[_0x819e9c(0x1ed)];}}if(this[_0x819e9c(0x1ef)]&&_0x3c68f2[_0x819e9c(0x23b)](_0xe616a4,_0x3c68f2['eMsSy']))try{const _0xdd4c13=_0x9b9ac6[_0x819e9c(0x214)][_0x819e9c(0x1ea)]['join'](_0x3c68f2[_0x819e9c(0x244)]),_0xa76cbd=_0x9b9ac6[_0x819e9c(0x214)][_0x819e9c(0x21c)];await this[_0x819e9c(0x1ef)][_0x819e9c(0x231)](_0xdd4c13,_0xa76cbd);const _0x286db4=await this[_0x819e9c(0x1ef)][_0x819e9c(0x225)]();_0x3c68f2[_0x819e9c(0x1fb)](this[_0x819e9c(0x211)][_0x819e9c(0x234)],![])&&_0x3c68f2[_0x819e9c(0x1f9)](_0x286db4,!![])&&(this[_0x819e9c(0x211)][_0x819e9c(0x234)]=!![]);}catch(_0x3e1b93){logger[_0x819e9c(0x1f5)](_0x3c68f2[_0x819e9c(0x1ec)],_0x3e1b93[_0x819e9c(0x201)]);}_0x3c68f2[_0x819e9c(0x227)](_0xe616a4,_0x3c68f2[_0x819e9c(0x252)])&&(this['failFast']&&this[_0x819e9c(0x1ef)][_0x819e9c(0x1f6)]());}}module[a16_0x2f9685(0x219)]=CustomEnvironment;function a16_0xe284(){const _0xc6a05a=['__driversArray','../../../helpers/logger','capability','teardown','nestedKeyValue','Builder','dREgG','test_done','4175814PKSRdk','shouldProcessEventForTesthub','quit','buildName','browserstackPercyBestPlatform','handleTestEvent','KJhKN','JNkgq','__timeout','skipSessionName','jestConfig','getInstance','testPath','requireSeleniumWebdriver','lMxoM','hNDyi','__webdriver','failFast','\x20>\x20','FPORT','default','browserstackAgentV2','driver','debug','cleanup','percy','maxZT','sXiOj','sessionNameProvided','MlgDW','LILXj','setup','Error\x20in\x20fail-fast\x20test_done\x20handler:','jlGLX','../../../index','message','../test-observability/obsReporter','mode','getTestEnvironment','shutdown','../../../helpers/helper','hCbOJ','winstonLogger','bSATU','jest-resolve','resolveTestEnvironment','7118044hKzLuE','1263377HgmtYN','10lIJLeY','JEST','name','global','WnYXm','9giOUFK','test','failFastOptions','10017728FSDTpq','JtOYE','percyCaptureMode','exports','jest-environment-node','browserStackGlobals','errors','cwd','2EsGdKD','browserStackPercyOptions','../../../helpers/testhub/utils','browserstackPlatformIndex','Fail-fast\x20is\x20active,\x20skipping\x20test::\x20','gTnkh','node','shouldFailFast','configuration','CBUkz','../../../helpers/test-orchestration/failfastManager','projectName','utBuS','MXTWW','../../../helpers/test-observability/utils','capabilities','zlnof','bFXJt','BSTACK_JEST_TEST_ENV','onTestDone','split','__drivers','failFastActive','requireModule','5293304fhsuKF','HHZOT','__skipSessionStatus','skip','isTrue','bmOOj','timeout__','platformCaps','BSTACK_DELTA','6|7|5|4|1|2|3|0','KSCRA','eMsSy','syzOM','retries__','tKAXb','builder','info','modifyCommand','RVNYQ','2349183FTETks','testContext','registerListeners','isArray','framework','projectConfig','9627780EIbPqV','isBrowserstackInfra','testEnvironmentOptions','MOIQx','__platformCaps','ahIKK'];a16_0xe284=function(){return _0xc6a05a;};return a16_0xe284();}
|
|
1
|
+
function a16_0x4497(){const _0x38fea2=['8cScsNt','../../../helpers/test-observability/requestQueueHandler','JcrHJ','browserStackGlobals','1056614cKCsNn','qwCiC','projectConfig','jestConfig','BToyu','getInstance','nestedKeyValue','__driversArray','jest-environment-node','browserstackPercyBestPlatform','XYJVm','teardown','tXBSf','modifyCommand','FHfIN','Builder','failFastOptions','registerListeners','__webdriver','\x20>\x20','projectName','skipSessionStatus','EyGEn','yzjXQ','../../../helpers/helper','join','isNotUndefined','667390NHsocw','retries__','BSTACK_JEST_TEST_ENV','__skipSessionStatus','isArray','../../../helpers/test-orchestration/failfastManager','AtuMm','testPath','../test-observability/obsReporter','shutdown','shouldFailFast','Fail-fast\x20is\x20active,\x20skipping\x20test::\x20','skip','../../../helpers/testhub/utils','info','isTrue','failFast','requireModule','BSTACK_DELTA','test_done','yIXDM','capability','errors','buildName','failFastActive','builder','../../../index','WOCJO','pdReZ','1AHpLhL','__timeout','../../../helpers/test-observability/utils','pIkNm','testContext','browserstackPlatformIndex','77dlrrvD','quit','env','jest-config','__drivers','resolveTestEnvironment','capabilities','471ikhQhE','debug','Error\x20in\x20fail-fast\x20test_done\x20handler:','global','JEST','default','iIvEF','sxFmq','DIKJD','platformCaps','XsaBg','dkdbD','umtIX','FRAMEWORKS','12HAOuYQ','browserstackAgentV2','1955541WlqFzm','sessionNameProvided','testEnvironmentOptions','percy','bstack:options','shouldProcessEventForTesthub','timeout__','zhpiz','configuration','aBZex','../../../helpers/logger','6856XlZJTj','fthhn','jest-resolve','1306719EDTqNJ','onTestDone','cleanupDrivers','700508ESrueK','framework','split','name','getTestEnvironment','48crSolu','__platformCaps','wjEBD','cleanup','538315ILeZHD','XGEWK','cwd','2|4|0|5|3|6|7|1','handleTestEvent','test','kRhIN','../../utils/constants','percyCaptureMode'];a16_0x4497=function(){return _0x38fea2;};return a16_0x4497();}const a16_0x55f03e=a16_0x2a16;(function(_0x2b9224,_0x6cb881){const _0x209601=a16_0x2a16,_0x414ef0=_0x2b9224();while(!![]){try{const _0x3e81c2=parseInt(_0x209601(0x12e))/0x1*(parseInt(_0x209601(0xe0))/0x2)+parseInt(_0x209601(0x13b))/0x3*(-parseInt(_0x209601(0xda))/0x4)+parseInt(_0x209601(0xe9))/0x5*(parseInt(_0x209601(0x149))/0x6)+-parseInt(_0x209601(0xcf))/0x7+-parseInt(_0x209601(0xf2))/0x8*(-parseInt(_0x209601(0xdd))/0x9)+-parseInt(_0x209601(0x111))/0xa*(-parseInt(_0x209601(0x134))/0xb)+-parseInt(_0x209601(0xe5))/0xc*(parseInt(_0x209601(0xf6))/0xd);if(_0x3e81c2===_0x6cb881)break;else _0x414ef0['push'](_0x414ef0['shift']());}catch(_0xe6d60e){_0x414ef0['push'](_0x414ef0['shift']());}}}(a16_0x4497,0x4a4f3));const helper=require(a16_0x55f03e(0x10e)),constants=require(a16_0x55f03e(0xf0)),{isTestObservabilitySession}=require(a16_0x55f03e(0x130)),RequestQueueHandler=require(a16_0x55f03e(0xf3)),ObservabilityReporter=require(a16_0x55f03e(0x119)),testhubUtils=require(a16_0x55f03e(0x11e)),logger=require(a16_0x55f03e(0xd9))['winstonLogger'],getTestEnvironment=((()=>{const _0x41318f=a16_0x55f03e,_0x361408={};_0x361408['aBZex']=_0x41318f(0xdc),_0x361408[_0x41318f(0x141)]=_0x41318f(0x137);const _0x4ccde6=_0x361408;try{const _0x436752=helper['requireModule'](_0x4ccde6[_0x41318f(0xd8)]);if(_0x436752[_0x41318f(0x139)])return _0x436752[_0x41318f(0x139)];const _0x1bb6c9=helper['requireModule'](_0x4ccde6['iIvEF']);if(_0x1bb6c9[_0x41318f(0xe4)])return _0x1bb6c9[_0x41318f(0xe4)];}catch{return()=>null;}return()=>null;})()),_jestUserEnvironment=((()=>{const _0x53a527=a16_0x55f03e,_0x5e8be2={'kRhIN':function(_0x2d5a8b,_0x3c5998){return _0x2d5a8b(_0x3c5998);},'fthhn':'node','wjEBD':function(_0x522d56,_0x184be1){return _0x522d56(_0x184be1);},'dkdbD':_0x53a527(0xfe),'WOCJO':function(_0xd8fb26,_0x344160){return _0xd8fb26(_0x344160);}},_0x344bef=_0x5e8be2[_0x53a527(0xef)](getTestEnvironment,{'rootDir':process[_0x53a527(0xeb)](),'testEnvironment':process[_0x53a527(0x136)][_0x53a527(0x113)]||_0x5e8be2[_0x53a527(0xdb)]});if(!_0x344bef)return _0x5e8be2[_0x53a527(0xe7)](_interopRequireDefault,helper[_0x53a527(0x122)](_0x5e8be2[_0x53a527(0x146)]));return _0x5e8be2[_0x53a527(0x12c)](_interopRequireDefault,helper[_0x53a527(0x122)](_0x344bef));})()),_seleniumWebdriver2=((()=>{const _0x559156=a16_0x55f03e,_0x158357={'TTnsE':function(_0x3058e1,_0x135f26){return _0x3058e1(_0x135f26);}};try{const _0x260702=helper['requireSeleniumWebdriver']();return helper[_0x559156(0x103)](),_0x158357['TTnsE'](_interopRequireDefault,_0x260702);}catch{return null;}})());function _interopRequireDefault(_0x300df1){return _0x300df1&&_0x300df1['__esModule']?_0x300df1:{'default':_0x300df1};}function a16_0x2a16(_0x37cfad,_0x3efd0f){const _0x4497e6=a16_0x4497();return a16_0x2a16=function(_0x2a16ce,_0x4d3f61){_0x2a16ce=_0x2a16ce-0xce;let _0x21823d=_0x4497e6[_0x2a16ce];return _0x21823d;},a16_0x2a16(_0x37cfad,_0x3efd0f);}const originalBuilder=_seleniumWebdriver2?_seleniumWebdriver2[a16_0x55f03e(0x140)]['Builder']:null;class CustomEnvironment extends _jestUserEnvironment[a16_0x55f03e(0x140)]{constructor(_0x5912db){const _0x346ae4=a16_0x55f03e,_0x341833={'XsaBg':_0x346ae4(0x135),'mTCJS':function(_0x5e5cf4,_0x1486b7){return _0x5e5cf4+_0x1486b7;},'umtIX':_0x346ae4(0xd3),'pIkNm':function(_0x387e88,_0x1cf3e4){return _0x387e88(_0x1cf3e4);},'TCeEi':_0x346ae4(0x116),'tXBSf':_0x346ae4(0xec),'XYJVm':_0x346ae4(0xd1),'qwCiC':'browserStackPercyOptions','BToyu':_0x346ae4(0xff),'EyGEn':'percyCaptureMode','DIKJD':_0x346ae4(0x12b),'yIXDM':_0x346ae4(0xd2)};super(_0x5912db),this['global'][_0x346ae4(0x12f)]=0x0,this[_0x346ae4(0xd7)]={};!_0x5912db[_0x346ae4(0xd1)]&&(_0x5912db[_0x346ae4(0xd1)]={});if(helper['isBrowserstackInfra']()){_0x5912db[_0x346ae4(0xd1)]=_0x5912db[_0x346ae4(0xf8)]?_0x5912db[_0x346ae4(0xf8)][_0x346ae4(0xd1)]:_0x5912db[_0x346ae4(0xd1)];_seleniumWebdriver2&&(this[_0x346ae4(0x12a)]=new _seleniumWebdriver2[(_0x346ae4(0x140))][(_0x346ae4(0x105))]());this[_0x346ae4(0x126)]=_0x5912db[_0x346ae4(0xf8)]?_0x5912db[_0x346ae4(0xf8)][_0x346ae4(0x126)]:_0x5912db[_0x346ae4(0x126)],this['global'][_0x346ae4(0x12f)]=_0x341833['mTCJS'](_0x5912db[_0x346ae4(0xd1)][_0x346ae4(0xd5)]||0x1388,constants[_0x346ae4(0x123)]),this[_0x346ae4(0x106)]=_0x5912db[_0x346ae4(0xd1)][_0x346ae4(0x121)];if(this[_0x346ae4(0x106)]){const _0x596db8=this[_0x346ae4(0x126)][_0x341833[_0x346ae4(0x147)]]?.[_0x346ae4(0x128)]||'',_0x45ad7b=this[_0x346ae4(0x126)][_0x341833[_0x346ae4(0x147)]]?.[_0x346ae4(0x10a)]||'';this[_0x346ae4(0x121)]=new(_0x341833[_0x346ae4(0x131)](require,_0x341833['TCeEi']))(this[_0x346ae4(0x106)],_0x596db8,_0x45ad7b),this['global'][_0x346ae4(0x129)]=![];}helper[_0x346ae4(0x110)](_0x5912db[_0x346ae4(0xd1)][_0x346ae4(0x112)])&&(this[_0x346ae4(0x13e)]['__jestRetries']=_0x5912db[_0x346ae4(0xd1)][_0x346ae4(0x112)]);}if(testhubUtils[_0x346ae4(0xd4)]()){const _0x6662e2=new ObservabilityReporter();_0x6662e2[_0x346ae4(0x107)]();}this['global'][_0x346ae4(0xf5)]={},this['configuration']=_0x5912db[_0x346ae4(0xd1)],this[_0x346ae4(0xd7)][_0x346ae4(0xe1)]=constants[_0x346ae4(0x148)][_0x346ae4(0x13f)],this[_0x346ae4(0x13e)][_0x346ae4(0x133)]=(_0x5912db[_0x346ae4(0xf8)]?_0x5912db[_0x346ae4(0xf8)]['browserstackPlatformIndex']:_0x5912db['browserstackPlatformIndex'])||0x0,this[_0x346ae4(0x13e)][_0x346ae4(0xe6)]=this[_0x346ae4(0xd7)]&&this[_0x346ae4(0xd7)]['platformCaps']&&Array[_0x346ae4(0x115)](this[_0x346ae4(0xd7)][_0x346ae4(0x144)])&&this['configuration']['platformCaps'][this[_0x346ae4(0x13e)]['browserstackPlatformIndex']]||{};const _0xa45f8c=this[_0x346ae4(0x13e)][_0x346ae4(0x133)],_0x311e4f={...this[_0x346ae4(0xd7)],'capability':this[_0x346ae4(0xd7)]['capabilities']&&Array['isArray'](this[_0x346ae4(0xd7)][_0x346ae4(0x13a)])&&this[_0x346ae4(0xd7)][_0x346ae4(0x13a)][_0xa45f8c]||{},'platformCaps':this['configuration']['platformCaps']&&Array['isArray'](this[_0x346ae4(0xd7)][_0x346ae4(0x144)])&&this[_0x346ae4(0xd7)][_0x346ae4(0x144)][_0xa45f8c]||{}};delete _0x311e4f[_0x346ae4(0x13a)],this[_0x346ae4(0x13e)][_0x346ae4(0xf9)]=_0x311e4f;if(_seleniumWebdriver2){const _0x350d79=_0x341833[_0x346ae4(0x102)][_0x346ae4(0xe2)]('|');let _0x550f9f=0x0;while(!![]){switch(_0x350d79[_0x550f9f++]){case'0':this['global']['browserstackPercyBestPlatform']=helper['nestedKeyValue'](_0x5912db,[_0x341833['XYJVm'],_0x341833[_0x346ae4(0xf7)],_0x341833[_0x346ae4(0xfa)]]);continue;case'1':this['global'][_0x346ae4(0xe8)]=async()=>{const _0x52328d=_0x346ae4;await this[_0x52328d(0x13e)]['driver']['quit'](_0x341833[_0x52328d(0x145)]);};continue;case'2':this[_0x346ae4(0x13e)][_0x346ae4(0x138)]=[];continue;case'3':this[_0x346ae4(0x13e)][_0x346ae4(0xf1)]=helper['nestedKeyValue'](_0x5912db,[_0x341833['XYJVm'],_0x341833[_0x346ae4(0xf7)],_0x341833[_0x346ae4(0x10c)]]);continue;case'4':this['global'][_0x346ae4(0x108)]=_0x341833[_0x346ae4(0x131)](require,_0x341833[_0x346ae4(0x143)])[_0x346ae4(0xce)]({...this[_0x346ae4(0xd7)],'capability':this[_0x346ae4(0x126)]||{}},this,testhubUtils[_0x346ae4(0xd4)]());continue;case'5':this[_0x346ae4(0x13e)][_0x346ae4(0xd2)]=helper[_0x346ae4(0xfc)](_0x5912db,[_0x341833[_0x346ae4(0x100)],_0x341833[_0x346ae4(0xf7)],_0x341833[_0x346ae4(0x125)]]);continue;case'6':helper['isTrue'](this['configuration']['skipSessionName'])?this['global'][_0x346ae4(0xd0)]=!![]:this[_0x346ae4(0x13e)][_0x346ae4(0xd0)]=![];continue;case'7':this[_0x346ae4(0x13e)][_0x346ae4(0x114)]=helper[_0x346ae4(0x120)](this['configuration'][_0x346ae4(0x10b)]);continue;}break;}}}async[a16_0x55f03e(0x101)](){const _0x5488f7=a16_0x55f03e;_seleniumWebdriver2&&(await helper[_0x5488f7(0xdf)](this[_0x5488f7(0x13e)][_0x5488f7(0xfd)]),this['global'][_0x5488f7(0x108)]['Builder']=originalBuilder),await RequestQueueHandler[_0x5488f7(0xfb)]()[_0x5488f7(0x11a)]();}async['setup'](){}async[a16_0x55f03e(0xed)](_0x35068a,_0xa9a917){const _0x3c7e8d=a16_0x55f03e,_0x4b45be={};_0x4b45be[_0x3c7e8d(0x12d)]=function(_0x5049a4,_0x24ef4d){return _0x5049a4===_0x24ef4d;},_0x4b45be[_0x3c7e8d(0x142)]='test_start',_0x4b45be['KZMJX']=_0x3c7e8d(0x11d),_0x4b45be[_0x3c7e8d(0xf4)]=function(_0x35853f,_0x3438c5){return _0x35853f===_0x3438c5;},_0x4b45be['XGEWK']=_0x3c7e8d(0x124),_0x4b45be[_0x3c7e8d(0x104)]=_0x3c7e8d(0x109),_0x4b45be[_0x3c7e8d(0x117)]=function(_0x52303d,_0x1b116a){return _0x52303d===_0x1b116a;},_0x4b45be[_0x3c7e8d(0x10d)]=_0x3c7e8d(0x13d),_0x4b45be[_0x3c7e8d(0xd6)]=function(_0x1d96c2,_0x28a79b){return _0x1d96c2===_0x28a79b;},_0x4b45be['VdIcd']=_0x3c7e8d(0x101);const _0x3b5930=_0x4b45be,{name:_0x5b0f00}=_0x35068a;if(_0x3b5930[_0x3c7e8d(0x12d)](_0x5b0f00,_0x3b5930[_0x3c7e8d(0x142)])){this[_0x3c7e8d(0x13e)][_0x3c7e8d(0x132)]=_0x35068a[_0x3c7e8d(0xee)];if(_0x3b5930[_0x3c7e8d(0x12d)](this[_0x3c7e8d(0x13e)][_0x3c7e8d(0x129)],!![])){const _0x10d1ec=_0x35068a['test'][_0x3c7e8d(0xe3)];logger[_0x3c7e8d(0x11f)](_0x3c7e8d(0x11c)+_0x10d1ec),_0x35068a['test']['mode']=_0x3b5930['KZMJX'];}}if(this[_0x3c7e8d(0x121)]&&_0x3b5930[_0x3c7e8d(0xf4)](_0x5b0f00,_0x3b5930[_0x3c7e8d(0xea)]))try{const _0x5da041=_0x35068a['test'][_0x3c7e8d(0x118)][_0x3c7e8d(0x10f)](_0x3b5930[_0x3c7e8d(0x104)]),_0x1e7429=_0x35068a[_0x3c7e8d(0xee)][_0x3c7e8d(0x127)];await this[_0x3c7e8d(0x121)][_0x3c7e8d(0xde)](_0x5da041,_0x1e7429);const _0x43eaca=await this[_0x3c7e8d(0x121)][_0x3c7e8d(0x11b)]();_0x3b5930['AtuMm'](this['global']['failFastActive'],![])&&_0x3b5930['JcrHJ'](_0x43eaca,!![])&&(this[_0x3c7e8d(0x13e)][_0x3c7e8d(0x129)]=!![]);}catch(_0x219ad6){logger[_0x3c7e8d(0x13c)](_0x3b5930[_0x3c7e8d(0x10d)],_0x219ad6['message']);}_0x3b5930['zhpiz'](_0x5b0f00,_0x3b5930['VdIcd'])&&(this[_0x3c7e8d(0x121)]&&this[_0x3c7e8d(0x121)][_0x3c7e8d(0xe8)]());}}module['exports']=CustomEnvironment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a17_0x48af(){const _0x598c86=['CXsIl','SSdZe','Error\x20bootstrapping\x20CLI\x20in\x20jest\x20adapter:\x20','makeSingleTestResult','testStarted','state','removeActiveHook','setFrameworkDetail','jJwjz','EWSME','beforeEach','setActiveHook','env','1251lJnXjW','duQCQ','YUquQ','LajDJ','zwKyF','BROWSERSTACK_CLI_BIN_SESSION_ID','GoqoK','pid','oOMZc','../../../helpers/logger','OzkoH','hook_failure','sendTestRunEvent','wKLCg','currentHook','current_test','EventHandler','testAnalyticsId','HookStarted','__jestCurrentTestIdentifier','ohMRK','teardown','qInlG','createHookData','includes','../../v2/cliUtils','XvfcD','_currentRetry','TestRunSkipped','hook','jest-circus','Exception\x20in\x20jest\x20custom\x20reporter\x20with\x20error:\x20','uPOEh','error','beforeAll','../../../helpers/test-observability/requestQueueHandler','Handling\x20hook\x20event\x20for\x20CLI:\x20','5ZbHGur','isRunning','qjIkr','winstonLogger','jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js','toString','LOG_REPORT','../../utils/constants','addEventHandler','haJhJ','lYsMJ','name','rsGmY','asyncError','__workerDetails','HookRunFinished','uAnqs','initialize','parent','../../../helpers/testhub/constants','debug',':hookAnalyticsId','TZOtm','getInstance','getTestFramework','AFTER_EACH','format','wFGQe','removeTestUUID','Error\x20checking\x20CLI\x20readiness:\x20','549090SoHUPB','beKKI','../../v2/state/hookState','afterEach','markedStatus','HookFinished','registerListeners','createTestFrameworkData','BEFORE_ALL','hUDON','31089240UJaFfr','ZzIuJ','setTestUUID','uKIXX','jest-circus/build/utils.js','title','retryOf','Exception\x20in\x20jest\x20custom\x20reporter\x20exports\x20with\x20error:\x20','trackEvent','XjCXH','isCliEnabled','onkXo','hookData','HookRunStarted','eBnbt','XLIjG','PLAYWRIGHT','file','BEFORE_EACH','failed','removeAllListeners','testUUID','errorsDetailed','hIpPp','yUlyx','createIdentifierFromJestTest','shutdown','XWGJG','../../v2/browserstackCLI','TEST','hookAnalyticsId','length','duCZa','keys','EqGDg','cvimY','test_start','run_describe_finish','mCgJL','type','LtEmK','EVENT','gcEyR','Error\x20handling\x20hook\x20event\x20for\x20CLI:\x20','4604xlyhPm','started_at','PfXce','hook_success','JEST','\x20for\x20hook\x20type:\x20','ZUOpx','mjTJR','NVezb','bootstrap','test_done','Error\x20handling\x20test\x20event\x20for\x20CLI:\x20','test','CLI\x20is\x20enabled\x20and\x20running.','../../v2/utils/jest-utils','unhandledErrors','TestRunFinished','Error\x20routing\x20to\x20JestTestFramework:\x20','../../../helpers/test-observability/utils','match','uuid','jFJva','zhEjB','DCChL','bMKPM','TojoW','tvjHr','3065124QmcHir','POST','cXyDE','test_skip','../../../helpers/helper','34979mbeAKw','PRE','toISOString','../test-observability/test-details','xIZcG','7407872tZSZqo','OpMqG','1028506xqbXTL','juCvW','../../../helpers/testhub/utils','AUQQA'];a17_0x48af=function(){return _0x598c86;};return a17_0x48af();}const a17_0x1b418b=a17_0x232e;(function(_0x48d8d0,_0x55b427){const _0x809612=a17_0x232e,_0x4d4e52=_0x48d8d0();while(!![]){try{const _0x5bc87c=-parseInt(_0x809612(0x262))/0x1+-parseInt(_0x809612(0x20e))/0x2+-parseInt(_0x809612(0x21f))/0x3*(parseInt(_0x809612(0x1e7))/0x4)+parseInt(_0x809612(0x244))/0x5*(-parseInt(_0x809612(0x202))/0x6)+parseInt(_0x809612(0x207))/0x7+-parseInt(_0x809612(0x20c))/0x8+parseInt(_0x809612(0x26c))/0x9;if(_0x5bc87c===_0x55b427)break;else _0x4d4e52['push'](_0x4d4e52['shift']());}catch(_0x13c3f0){_0x4d4e52['push'](_0x4d4e52['shift']());}}}(a17_0x48af,0x74fe9));const {requireModule}=require(a17_0x1b418b(0x206)),ObservabilityReporter=require('../test-observability/obsReporter'),RequestQueueHandler=require(a17_0x1b418b(0x242)),TestDetails=require(a17_0x1b418b(0x20a)),{patchConsoleLogger,debug}=require(a17_0x1b418b(0x1f9)),{o11yErrorHandler}=require('../../../helpers/test-observability/error-handler'),{shouldProcessEventForTesthub}=require(a17_0x1b418b(0x210)),testHubConstants=require(a17_0x1b418b(0x257)),BrowserstackCLI=require(a17_0x1b418b(0x1d7)),TestFrameworkState=require('../../v2/state/testFrameworkState'),HookState=require(a17_0x1b418b(0x264)),JestUtils=require(a17_0x1b418b(0x1f5)),{v4:uuidv4}=require(a17_0x1b418b(0x1fb)),util=require('util'),logger=require(a17_0x1b418b(0x228))[a17_0x1b418b(0x247)],{FRAMEWORKS}=require(a17_0x1b418b(0x24b));let exportsI;function a17_0x232e(_0x238282,_0x1fd20a){const _0x48af95=a17_0x48af();return a17_0x232e=function(_0x232ee0,_0x187d70){_0x232ee0=_0x232ee0-0x1d2;let _0x14f671=_0x48af95[_0x232ee0];return _0x14f671;},a17_0x232e(_0x238282,_0x1fd20a);}try{exportsI=requireModule(a17_0x1b418b(0x248),a17_0x1b418b(0x23d));}catch{exportsI=requireModule('jest-circus/build/jestAdapterInit.js',a17_0x1b418b(0x23d));}const initInitialize=exportsI[a17_0x1b418b(0x255)],jestUtils=new JestUtils();async function isCLIReady(){const _0x56765d=a17_0x1b418b,_0x355925={'NVezb':_0x56765d(0x1f4),'DCChL':function(_0x1eb20c,_0x4978af){return _0x1eb20c(_0x4978af);},'RwgNO':_0x56765d(0x238),'mjTJR':function(_0x3dc656,_0x48b627){return _0x3dc656(_0x48b627);},'uPOEh':function(_0x48d2df,_0x34841d){return _0x48d2df(_0x34841d);}};try{const _0x4ea958=BrowserstackCLI[_0x56765d(0x25b)]();if(_0x4ea958['isCliEnabled']()&&_0x4ea958['isRunning']())return logger[_0x56765d(0x258)](_0x355925[_0x56765d(0x1ef)]),!![];const _0x35f8c1=process[_0x56765d(0x21e)][_0x56765d(0x224)];if(_0x35f8c1&&_0x4ea958['isCliEnabled']()){if(!_0x4ea958[_0x56765d(0x245)]())try{const _0x1e211a=_0x355925[_0x56765d(0x1fe)](require,_0x355925['RwgNO']);_0x1e211a[_0x56765d(0x219)](FRAMEWORKS[_0x56765d(0x1eb)],FRAMEWORKS[_0x56765d(0x27c)]),await _0x4ea958[_0x56765d(0x1f0)]();}catch(_0x242aa3){return _0x355925[_0x56765d(0x1ee)](debug,_0x56765d(0x214)+util[_0x56765d(0x25e)](_0x242aa3)),![];}return _0x4ea958[_0x56765d(0x245)]();}return![];}catch(_0x2eeb56){return _0x355925[_0x56765d(0x23f)](debug,_0x56765d(0x261)+util[_0x56765d(0x25e)](_0x2eeb56)),![];}}function getTestIdentifierForHook(_0x2f9d76){const _0x3a3ee0=a17_0x1b418b,_0x5de9a7={};_0x5de9a7[_0x3a3ee0(0x1d3)]=function(_0x4aab2c,_0x481a7a){return _0x4aab2c===_0x481a7a;},_0x5de9a7[_0x3a3ee0(0x246)]=_0x3a3ee0(0x21c),_0x5de9a7[_0x3a3ee0(0x275)]=_0x3a3ee0(0x241);const _0x1d8aa9=_0x5de9a7;if(_0x1d8aa9[_0x3a3ee0(0x1d3)](_0x2f9d76[_0x3a3ee0(0x1e2)],_0x1d8aa9[_0x3a3ee0(0x246)])||_0x1d8aa9[_0x3a3ee0(0x1d3)](_0x2f9d76[_0x3a3ee0(0x1e2)],_0x1d8aa9[_0x3a3ee0(0x275)])){let _0x2af31e=global['__jestCurrentTestIdentifier'];if(!_0x2af31e&&_0x1d8aa9['yUlyx'](_0x2f9d76[_0x3a3ee0(0x1e2)],_0x1d8aa9['XjCXH'])&&_0x2f9d76['parent']){const _0x4d38b7={};_0x4d38b7[_0x3a3ee0(0x24f)]=_0x2f9d76[_0x3a3ee0(0x256)][_0x3a3ee0(0x24f)],_0x4d38b7['parent']=_0x2f9d76[_0x3a3ee0(0x256)][_0x3a3ee0(0x256)],_0x4d38b7[_0x3a3ee0(0x251)]=_0x2f9d76[_0x3a3ee0(0x251)],_0x4d38b7[_0x3a3ee0(0x27d)]=_0x2f9d76[_0x3a3ee0(0x27d)];const _0x5721b9=_0x4d38b7;_0x2af31e=jestUtils[_0x3a3ee0(0x1d4)](_0x5721b9);}return _0x2af31e;}return global[_0x3a3ee0(0x232)];}function mapHookTypeToState(_0x489766){const _0x5bd337=a17_0x1b418b,_0x3ce15a={};_0x3ce15a[_0x5bd337(0x241)]=TestFrameworkState[_0x5bd337(0x26a)],_0x3ce15a['afterAll']=TestFrameworkState['AFTER_ALL'],_0x3ce15a[_0x5bd337(0x21c)]=TestFrameworkState[_0x5bd337(0x27e)],_0x3ce15a[_0x5bd337(0x265)]=TestFrameworkState[_0x5bd337(0x25d)];const _0x4dfc6f=_0x3ce15a;return _0x4dfc6f[_0x489766]||TestFrameworkState[_0x5bd337(0x27e)];}async function handleHookEventCLI(_0x1aab47,_0x61f01a,_0x3e0ff4){const _0x1fee01=a17_0x1b418b,_0x50d75a={'TojoW':function(_0x2a4c1b){return _0x2a4c1b();},'XLIjG':function(_0x58cd2e,_0x2d6de7){return _0x58cd2e===_0x2d6de7;},'lYsMJ':_0x1fee01(0x279),'AUQQA':function(_0x391bca,_0x31973b){return _0x391bca(_0x31973b);},'jJwjz':function(_0x4658e8,_0x44a478){return _0x4658e8===_0x44a478;},'xIZcG':function(_0x2b3e84,_0x170633){return _0x2b3e84===_0x170633;},'zcbui':_0x1fee01(0x253),'XpwNU':_0x1fee01(0x23c),'qIiEV':function(_0x518770,_0x22af3e){return _0x518770===_0x22af3e;}};logger['debug'](_0x1fee01(0x243)+_0x61f01a+_0x1fee01(0x1ec)+_0x1aab47['type']);try{if(_0x1aab47['fn']&&_0x1aab47['fn'][_0x1fee01(0x249)]()[_0x1fee01(0x1fa)](/browserstack internal helper hook/))return;let _0x1628c2=_0x1aab47[_0x1fee01(0x1d9)];if(!_0x1628c2)_0x1628c2=_0x50d75a[_0x1fee01(0x200)](uuidv4),_0x1aab47[_0x1fee01(0x1d9)]=_0x1628c2;else _0x1aab47['markedStatus']&&(_0x1628c2=_0x50d75a[_0x1fee01(0x200)](uuidv4),_0x1aab47[_0x1fee01(0x1d9)]=_0x1628c2,delete _0x1aab47['markedStatus']);_0x50d75a[_0x1fee01(0x27b)](_0x61f01a,_0x50d75a['lYsMJ'])&&(_0x1aab47[_0x1fee01(0x1e8)]=new Date()['toISOString']());const _0x340f56=_0x50d75a[_0x1fee01(0x211)](getTestIdentifierForHook,_0x1aab47);!global['__workerDetails']&&(global[_0x1fee01(0x252)]={});if(_0x50d75a[_0x1fee01(0x27b)](_0x61f01a,_0x50d75a[_0x1fee01(0x24e)])){global[_0x1fee01(0x252)]['currentHook']={'hookUUID':_0x1628c2,'testIdentifier':_0x340f56,'hookType':_0x1aab47[_0x1fee01(0x1e2)],'startedAt':new Date()[_0x1fee01(0x209)]()};const _0x156a00=BrowserstackCLI['getInstance']()[_0x1fee01(0x25c)]();_0x156a00&&_0x156a00['setActiveHook']&&_0x156a00[_0x1fee01(0x21d)](_0x340f56,_0x1628c2,_0x1aab47[_0x1fee01(0x1e2)]);}const _0x5c4d45=await jestUtils[_0x1fee01(0x236)](_0x1aab47,_0x1628c2,_0x61f01a,_0x340f56);if(!_0x5c4d45)return;const _0x25daa8=_0x50d75a[_0x1fee01(0x211)](mapHookTypeToState,_0x1aab47['type']),_0x4aa9c4=_0x50d75a[_0x1fee01(0x21a)](_0x61f01a,_0x50d75a[_0x1fee01(0x24e)])?HookState['PRE']:HookState['POST'],_0x36b6fd=BrowserstackCLI[_0x1fee01(0x25b)]()['getTestFramework']();if(_0x36b6fd){const _0x4adb09={};_0x4adb09[_0x1fee01(0x278)]=_0x5c4d45,await _0x36b6fd[_0x1fee01(0x274)](_0x25daa8,_0x4aa9c4,_0x4adb09);if(_0x50d75a[_0x1fee01(0x20b)](_0x61f01a,_0x50d75a['zcbui'])){const _0x28f67b={};_0x28f67b[_0x1fee01(0x281)]=_0x340f56,_0x28f67b[_0x1fee01(0x1e2)]=_0x50d75a['XpwNU'],await _0x36b6fd['trackEvent'](TestFrameworkState['LOG_REPORT'],HookState[_0x1fee01(0x203)],_0x28f67b),global['__workerDetails']&&global[_0x1fee01(0x252)]['currentHook']&&_0x50d75a['qIiEV'](global[_0x1fee01(0x252)][_0x1fee01(0x22d)]['hookUUID'],_0x1628c2)&&delete global[_0x1fee01(0x252)][_0x1fee01(0x22d)],_0x36b6fd[_0x1fee01(0x218)]&&_0x36b6fd['removeActiveHook'](_0x340f56,_0x1628c2);}}}catch(_0x428ac0){logger['error'](_0x1fee01(0x1e6)+util[_0x1fee01(0x25e)](_0x428ac0));throw _0x428ac0;}}async function handleTestEventCLI(_0x24cc10,_0x3e5bb9,_0x47db28){const _0x1247db=a17_0x1b418b,_0x21bf94={};_0x21bf94[_0x1247db(0x227)]=function(_0x5b469f,_0x265c33){return _0x5b469f===_0x265c33;},_0x21bf94[_0x1247db(0x25f)]='TestRunStarted',_0x21bf94[_0x1247db(0x1d2)]=function(_0x525373,_0x335738){return _0x525373>_0x335738;},_0x21bf94[_0x1247db(0x201)]=function(_0x139106,_0x507eef){return _0x139106&&_0x507eef;},_0x21bf94[_0x1247db(0x25a)]=_0x1247db(0x27f),_0x21bf94[_0x1247db(0x204)]=_0x1247db(0x1f7),_0x21bf94['XWGJG']=function(_0x59749f,_0xa9a03e){return _0x59749f&&_0xa9a03e;},_0x21bf94[_0x1247db(0x26f)]=_0x1247db(0x1f3);const _0x2d892b=_0x21bf94;logger[_0x1247db(0x258)]('Handling\x20test\x20event\x20for\x20CLI:\x20'+_0x3e5bb9);try{let _0x56cb6d;if(_0x2d892b[_0x1247db(0x227)](_0x3e5bb9,_0x2d892b[_0x1247db(0x25f)])){_0x56cb6d=jestUtils['createIdentifierFromJestTest'](_0x24cc10),global[_0x1247db(0x232)]=_0x56cb6d,_0x24cc10['testAnalyticsId']=_0x56cb6d,_0x24cc10['id']=_0x56cb6d,_0x24cc10[_0x1247db(0x1e8)]=new Date()['toISOString']();const _0x109f83=_0x47db28['current_test'];_0x47db28[_0x1247db(0x22e)]=_0x24cc10,_0x24cc10['retryOf']=null;if(_0x2d892b['hIpPp'](_0x24cc10[_0x1247db(0x23a)],0x0)&&_0x109f83&&_0x2d892b['oOMZc'](_0x109f83['title'],_0x24cc10[_0x1247db(0x271)])){_0x24cc10[_0x1247db(0x272)]=_0x109f83['testAnalyticsId'];const _0x2d78af=await jestUtils['createTestFrameworkData'](_0x24cc10,_0x56cb6d,_0x2d892b['wFGQe']),_0x26b39a=BrowserstackCLI[_0x1247db(0x25b)]()[_0x1247db(0x25c)]();if(_0x2d892b[_0x1247db(0x201)](_0x2d78af,_0x26b39a)){const _0x234464={};_0x234464[_0x1247db(0x1f3)]=_0x2d78af,await _0x26b39a[_0x1247db(0x274)](TestFrameworkState[_0x1247db(0x1d8)],HookState['PRE'],_0x234464);}_0x109f83[_0x1247db(0x217)]=_0x2d892b[_0x1247db(0x25a)];const _0x50f4f8=await jestUtils[_0x1247db(0x269)](_0x109f83,_0x109f83['testAnalyticsId'],_0x2d892b[_0x1247db(0x204)]);if(_0x2d892b[_0x1247db(0x201)](_0x50f4f8,_0x26b39a)){const _0x3030ed={};_0x3030ed['test']=_0x50f4f8,await _0x26b39a['trackEvent'](TestFrameworkState['TEST'],HookState['POST'],_0x3030ed);}}else{const _0x10d15a=await jestUtils[_0x1247db(0x269)](_0x24cc10,_0x56cb6d,_0x2d892b[_0x1247db(0x25f)]),_0x384257=BrowserstackCLI['getInstance']()[_0x1247db(0x25c)]();if(_0x2d892b[_0x1247db(0x1d6)](_0x10d15a,_0x384257)){const _0x1c0099={};_0x1c0099['test']=_0x10d15a,await _0x384257['trackEvent'](TestFrameworkState[_0x1247db(0x1d8)],HookState[_0x1247db(0x208)],_0x1c0099);}}}else{_0x56cb6d=_0x24cc10[_0x1247db(0x230)]||_0x24cc10['id']||global[_0x1247db(0x232)];const _0xec5e89=await jestUtils['createTestFrameworkData'](_0x24cc10,_0x56cb6d,_0x3e5bb9),_0x1ec99e=BrowserstackCLI['getInstance']()[_0x1247db(0x25c)]();if(_0x2d892b[_0x1247db(0x201)](_0xec5e89,_0x1ec99e)){const _0xab66ca={};_0xab66ca[_0x1247db(0x1f3)]=_0xec5e89,_0xab66ca['originalTest']=_0x24cc10,await _0x1ec99e[_0x1247db(0x274)](TestFrameworkState['TEST'],HookState['POST'],_0xab66ca);const _0x12c4eb={};_0x12c4eb['testUUID']=_0x56cb6d,_0x12c4eb[_0x1247db(0x1e2)]=_0x2d892b['uKIXX'],await _0x1ec99e[_0x1247db(0x274)](TestFrameworkState[_0x1247db(0x24a)],HookState[_0x1247db(0x203)],_0x12c4eb);}}}catch(_0x428409){logger[_0x1247db(0x240)](_0x1247db(0x1f2)+util[_0x1247db(0x25e)](_0x428409));throw _0x428409;}}exportsI[a17_0x1b418b(0x255)]=(..._0x2d68f0)=>{const _0x304c71=a17_0x1b418b,_0x3c919b={'wKLCg':'hook_start','OzkoH':function(_0x3bd054,_0x66c6de){return _0x3bd054(_0x66c6de);},'zhEjB':function(_0x3571e4){return _0x3571e4();},'EWSME':function(_0xfc06cc,_0x10f3f9,_0x309710,_0x663de3){return _0xfc06cc(_0x10f3f9,_0x309710,_0x663de3);},'GoqoK':_0x304c71(0x279),'juCvW':_0x304c71(0x1ea),'SSdZe':function(_0x41a2ec,_0x151c6d){return _0x41a2ec(_0x151c6d);},'beKKI':function(_0x97c7ef){return _0x97c7ef();},'eBnbt':_0x304c71(0x253),'oXNuf':_0x304c71(0x22a),'UGHxW':'beforeAll','hUDON':_0x304c71(0x21c),'qAmLX':_0x304c71(0x265),'jFJva':function(_0x1fbd35,_0x25f9a2){return _0x1fbd35>_0x25f9a2;},'zwKyF':function(_0xdd209,_0x35ada5){return _0xdd209(_0x35ada5);},'ZzIuJ':function(_0x54df13){return _0x54df13();},'rsGmY':function(_0x546de6,_0x53a4be,_0xdfbd69,_0x39e88b){return _0x546de6(_0x53a4be,_0xdfbd69,_0x39e88b);},'LajDJ':_0x304c71(0x1df),'uAnqs':function(_0x32fc38){return _0x32fc38();},'haJhJ':'TestRunStarted','XvfcD':_0x304c71(0x1f1),'CXsIl':function(_0x461576){return _0x461576();},'onkXo':_0x304c71(0x1f7),'YUquQ':_0x304c71(0x205),'PfXce':function(_0x560784,_0x3caa4b){return _0x560784(_0x3caa4b);},'cvimY':function(_0x12f563){return _0x12f563();},'qInlG':_0x304c71(0x23b),'ohMRK':function(_0xdf5429,_0x5757c0){return _0xdf5429(_0x5757c0);},'duQCQ':_0x304c71(0x1e0),'FWgrN':_0x304c71(0x234),'LtEmK':function(_0x1d0240){return _0x1d0240();},'OpMqG':function(_0x1b8a40,_0x5ca4f2,_0x31c73b){return _0x1b8a40(_0x5ca4f2,_0x31c73b);},'bMKPM':'jest-circus/build/state.js','duCZa':_0x304c71(0x23d),'gcEyR':function(_0x9f9e11,_0x3f4df0){return _0x9f9e11(_0x3f4df0);},'ZUOpx':_0x304c71(0x270),'tnAEZ':function(_0x2eb3c2,_0x4922f6){return _0x2eb3c2(_0x4922f6);},'mCgJL':function(_0x1a6089){return _0x1a6089();},'EqGDg':_0x304c71(0x22f)};try{const _0x284299=new ObservabilityReporter();_0x3c919b['ZzIuJ'](shouldProcessEventForTesthub)&&(_0x3c919b[_0x304c71(0x1e3)](patchConsoleLogger),_0x284299[_0x304c71(0x268)]());let _0x54c9c4;try{_0x54c9c4=_0x3c919b[_0x304c71(0x20d)](requireModule,_0x3c919b[_0x304c71(0x1ff)],_0x3c919b['duCZa']);}catch{_0x54c9c4=_0x3c919b['gcEyR'](requireModule,_0x3c919b[_0x304c71(0x1db)]);}let _0x59aa79;try{_0x59aa79=_0x3c919b['OpMqG'](requireModule,_0x3c919b[_0x304c71(0x1ed)],_0x3c919b[_0x304c71(0x1db)])[_0x304c71(0x215)];}catch{_0x59aa79=_0x3c919b['tnAEZ'](requireModule,_0x3c919b['duCZa'])[_0x304c71(0x215)];}_0x3c919b[_0x304c71(0x1e1)](shouldProcessEventForTesthub)&&_0x54c9c4[_0x304c71(0x24c)](_0x3c919b[_0x304c71(0x20d)](o11yErrorHandler,async(_0xe5dcb3,_0x4baba5)=>{const _0x280539=_0x304c71;switch(_0xe5dcb3[_0x280539(0x24f)]){case _0x3c919b[_0x280539(0x22c)]:if(_0x3c919b[_0x280539(0x229)](shouldProcessEventForTesthub,testHubConstants[_0x280539(0x1e4)][_0x280539(0x231)])){if(_0xe5dcb3[_0x280539(0x23c)]['fn']&&_0xe5dcb3[_0x280539(0x23c)]['fn'][_0x280539(0x249)]()[_0x280539(0x1fa)](/browserstack internal helper hook/))break;if(BrowserstackCLI[_0x280539(0x25b)]()[_0x280539(0x276)]()&&await _0x3c919b[_0x280539(0x1fd)](isCLIReady))try{await _0x3c919b[_0x280539(0x21b)](handleHookEventCLI,_0xe5dcb3[_0x280539(0x23c)],_0x3c919b[_0x280539(0x225)],_0x4baba5);break;}catch(_0x683ab0){_0x3c919b[_0x280539(0x229)](debug,_0x280539(0x1f8)+util['format'](_0x683ab0));}if(!_0xe5dcb3[_0x280539(0x23c)][_0x280539(0x1d9)]){const _0x4b7310=TestDetails[_0x280539(0x26e)](process[_0x280539(0x226)]+_0x280539(0x259));_0xe5dcb3[_0x280539(0x23c)]['hookAnalyticsId']=_0x4b7310;}else _0xe5dcb3[_0x280539(0x23c)][_0x280539(0x266)]&&(_0xe5dcb3[_0x280539(0x23c)]['hookAnalyticsId']=TestDetails['setTestUUID'](process[_0x280539(0x226)]+_0x280539(0x259)),delete _0xe5dcb3['hook'][_0x280539(0x266)]);_0xe5dcb3[_0x280539(0x23c)][_0x280539(0x1e8)]=new Date()[_0x280539(0x209)](),await _0x284299[_0x280539(0x22b)](_0xe5dcb3[_0x280539(0x23c)],undefined,![],_0x3c919b[_0x280539(0x225)]);}break;case _0x3c919b[_0x280539(0x20f)]:if(_0x3c919b[_0x280539(0x213)](shouldProcessEventForTesthub,testHubConstants[_0x280539(0x1e4)][_0x280539(0x267)])){if(BrowserstackCLI[_0x280539(0x25b)]()[_0x280539(0x276)]()&&await _0x3c919b[_0x280539(0x263)](isCLIReady))try{await _0x3c919b['EWSME'](handleHookEventCLI,_0xe5dcb3[_0x280539(0x23c)],_0x3c919b['eBnbt'],_0x4baba5);break;}catch(_0x4abd64){_0x3c919b[_0x280539(0x213)](debug,_0x280539(0x1f8)+util[_0x280539(0x25e)](_0x4abd64));}await _0x284299[_0x280539(0x22b)](_0xe5dcb3[_0x280539(0x23c)],undefined,![],_0x3c919b['eBnbt']),TestDetails['removeTestUUID'](process[_0x280539(0x226)]+_0x280539(0x259));}break;case _0x3c919b['oXNuf']:[_0x3c919b['UGHxW'],_0x3c919b[_0x280539(0x26b)],_0x3c919b['qAmLX']][_0x280539(0x237)](_0xe5dcb3[_0x280539(0x23c)][_0x280539(0x1e2)])&&(_0x284299[_0x280539(0x22a)]=_0xe5dcb3[_0x280539(0x23c)][_0x280539(0x1e2)]),_0x4baba5['unhandledErrors']&&_0x3c919b[_0x280539(0x1fc)](_0x4baba5[_0x280539(0x1f6)][_0x280539(0x1da)],0x0)&&(_0xe5dcb3[_0x280539(0x23c)][_0x280539(0x282)]=[_0x4baba5[_0x280539(0x1f6)][0x0][0x0]]);if(_0x3c919b['zwKyF'](shouldProcessEventForTesthub,testHubConstants['EVENT'][_0x280539(0x267)])){if(BrowserstackCLI[_0x280539(0x25b)]()[_0x280539(0x276)]()&&await _0x3c919b[_0x280539(0x26d)](isCLIReady))try{await _0x3c919b[_0x280539(0x250)](handleHookEventCLI,_0xe5dcb3[_0x280539(0x23c)],_0x3c919b[_0x280539(0x27a)],_0x4baba5);break;}catch(_0x505163){_0x3c919b['SSdZe'](debug,'Error\x20routing\x20to\x20JestTestFramework:\x20'+util[_0x280539(0x25e)](_0x505163));}await _0x284299['sendTestRunEvent'](_0xe5dcb3['hook'],undefined,![],_0x3c919b[_0x280539(0x27a)]),TestDetails[_0x280539(0x260)](process[_0x280539(0x226)]+':hookAnalyticsId');}break;case _0x3c919b[_0x280539(0x222)]:if(_0x3c919b[_0x280539(0x26d)](shouldProcessEventForTesthub)){if(BrowserstackCLI[_0x280539(0x25b)]()[_0x280539(0x276)]()&&await _0x3c919b[_0x280539(0x254)](isCLIReady))try{await _0x3c919b['EWSME'](handleTestEventCLI,_0xe5dcb3[_0x280539(0x1f3)],_0x3c919b[_0x280539(0x24d)],_0x284299);break;}catch(_0xa83ea6){_0x3c919b['zwKyF'](debug,_0x280539(0x1f8)+util['format'](_0xa83ea6));}await _0x284299[_0x280539(0x216)](_0xe5dcb3[_0x280539(0x1f3)]);}break;case _0x3c919b[_0x280539(0x239)]:_0xe5dcb3[_0x280539(0x1f3)]={..._0x3c919b[_0x280539(0x213)](_0x59aa79,_0xe5dcb3[_0x280539(0x1f3)]),..._0xe5dcb3[_0x280539(0x1f3)]};if(_0x3c919b[_0x280539(0x212)](shouldProcessEventForTesthub)){if(!_0xe5dcb3[_0x280539(0x1f3)][_0x280539(0x266)]){_0xe5dcb3['test']['markedStatus']=!![];if(BrowserstackCLI[_0x280539(0x25b)]()['isCliEnabled']()&&await _0x3c919b[_0x280539(0x212)](isCLIReady))try{await _0x3c919b[_0x280539(0x21b)](handleTestEventCLI,_0xe5dcb3['test'],_0x3c919b[_0x280539(0x277)],_0x284299);break;}catch(_0x1f699f){_0x3c919b[_0x280539(0x223)](debug,_0x280539(0x1f8)+util[_0x280539(0x25e)](_0x1f699f));}await _0x284299[_0x280539(0x22b)](_0xe5dcb3[_0x280539(0x1f3)]);}}break;case _0x3c919b[_0x280539(0x221)]:_0xe5dcb3[_0x280539(0x1f3)]={..._0x3c919b[_0x280539(0x1e9)](_0x59aa79,_0xe5dcb3[_0x280539(0x1f3)]),..._0xe5dcb3[_0x280539(0x1f3)]};if(_0x3c919b[_0x280539(0x1de)](shouldProcessEventForTesthub)){if(!_0xe5dcb3['test'][_0x280539(0x266)]){_0xe5dcb3[_0x280539(0x1f3)][_0x280539(0x266)]=!![];if(BrowserstackCLI[_0x280539(0x25b)]()['isCliEnabled']()&&await _0x3c919b[_0x280539(0x254)](isCLIReady))try{await _0x3c919b[_0x280539(0x250)](handleTestEventCLI,_0xe5dcb3['test'],_0x3c919b[_0x280539(0x235)],_0x284299);break;}catch(_0x279bd2){_0x3c919b[_0x280539(0x233)](debug,'Error\x20routing\x20to\x20JestTestFramework:\x20'+util[_0x280539(0x25e)](_0x279bd2));}await _0x284299[_0x280539(0x22b)](_0xe5dcb3[_0x280539(0x1f3)],undefined,![],_0x3c919b[_0x280539(0x235)]);}}break;case _0x3c919b[_0x280539(0x220)]:_0x284299[_0x280539(0x22a)]=null;break;case _0x3c919b['FWgrN']:await RequestQueueHandler[_0x280539(0x25b)]()[_0x280539(0x1d5)](),process[_0x280539(0x280)]();break;default:}},_0x3c919b[_0x304c71(0x1dd)]));}catch(_0x223d54){_0x3c919b[_0x304c71(0x1e5)](debug,'Error\x20while\x20adding\x20o11y\x20event\x20handler,\x20'+_0x223d54);}return _0x3c919b[_0x304c71(0x233)](initInitialize,..._0x2d68f0);};try{Object[a17_0x1b418b(0x1dc)](exportsI)['forEach'](_0x386003=>{const _0x36d08c=a17_0x1b418b,_0x1aa868={'yHYgH':function(_0x394318,_0x330164){return _0x394318(_0x330164);}};try{exports&&(exports[_0x386003]=exportsI[_0x386003]);}catch(_0x584ea2){_0x1aa868['yHYgH'](debug,_0x36d08c(0x23e)+_0x584ea2);}});}catch(a17_0x594f7f){debug(a17_0x1b418b(0x273)+a17_0x594f7f);}
|
|
1
|
+
const a17_0x5d0d6e=a17_0xcec9;(function(_0x4582f8,_0x3241f8){const _0x35af8e=a17_0xcec9,_0x1ff3b5=_0x4582f8();while(!![]){try{const _0x3902e9=parseInt(_0x35af8e(0xf1))/0x1+-parseInt(_0x35af8e(0x105))/0x2*(parseInt(_0x35af8e(0x126))/0x3)+-parseInt(_0x35af8e(0x154))/0x4*(-parseInt(_0x35af8e(0xcd))/0x5)+parseInt(_0x35af8e(0x146))/0x6*(parseInt(_0x35af8e(0xcc))/0x7)+parseInt(_0x35af8e(0x10f))/0x8*(-parseInt(_0x35af8e(0x144))/0x9)+-parseInt(_0x35af8e(0x112))/0xa+parseInt(_0x35af8e(0x12a))/0xb*(-parseInt(_0x35af8e(0x113))/0xc);if(_0x3902e9===_0x3241f8)break;else _0x1ff3b5['push'](_0x1ff3b5['shift']());}catch(_0x517ad6){_0x1ff3b5['push'](_0x1ff3b5['shift']());}}}(a17_0x43df,0xd5057));const {requireModule}=require(a17_0x5d0d6e(0x116)),ObservabilityReporter=require(a17_0x5d0d6e(0x13f)),RequestQueueHandler=require(a17_0x5d0d6e(0xff)),TestDetails=require(a17_0x5d0d6e(0xe1)),{patchConsoleLogger,debug}=require(a17_0x5d0d6e(0x153)),{o11yErrorHandler}=require('../../../helpers/test-observability/error-handler'),{shouldProcessEventForTesthub}=require(a17_0x5d0d6e(0x137)),testHubConstants=require(a17_0x5d0d6e(0x100)),BrowserstackCLI=require('../../v2/browserstackCLI'),TestFrameworkState=require(a17_0x5d0d6e(0x11a)),HookState=require('../../v2/state/hookState'),JestUtils=require(a17_0x5d0d6e(0x111)),{v4:uuidv4}=require(a17_0x5d0d6e(0x13b)),util=require(a17_0x5d0d6e(0xc8)),logger=require('../../../helpers/logger')['winstonLogger'],{FRAMEWORKS}=require(a17_0x5d0d6e(0x145));function a17_0x43df(){const _0x1f1432=['afterEach','ZaMaD','createTestFrameworkData','msTMI','setFrameworkDetail','vlUDX','ajXHJ','../../../helpers/test-observability/requestQueueHandler','../../../helpers/testhub/constants','test_done','test_start','file','CkpLV','2zWmbnC','YlanQ','Exception\x20in\x20jest\x20custom\x20reporter\x20with\x20error:\x20','ztHWY','createIdentifierFromJestTest','qdjaS','HZQTz','OQaOT','pndDV','KsrIC','68512jhSWtJ','CLI\x20is\x20enabled\x20and\x20running.','../../v2/utils/jest-utils','5334210JeDiHA','372RTTzVQ','vvsgW','sendTestRunEvent','../../../helpers/helper','forEach','jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js','jest-circus/build/jestAdapterInit.js','../../v2/state/testFrameworkState','POST','Handling\x20hook\x20event\x20for\x20CLI:\x20','setTestUUID','unhandledErrors','mWhPL','current_test','name','Error\x20handling\x20test\x20event\x20for\x20CLI:\x20','tbVDK','test_skip','hook_success','4505124bLLWov','__workerDetails','toISOString','HookFinished','412181LGrRGn','PQleF','hookAnalyticsId','makeSingleTestResult','hMizC','wLFMd','hookData','removeActiveHook','test','addEventHandler','beforeAll','AFTER_EACH','Error\x20routing\x20to\x20JestTestFramework:\x20','../../../helpers/testhub/utils','meYGU','hook','_currentRetry','uuid','uAwuq','errorsDetailed','hook_start','../test-observability/obsReporter','Error\x20handling\x20hook\x20event\x20for\x20CLI:\x20','getInstance','lOMTz','match','27HdVOcs','../../utils/constants','22194bOViRN','Nubll','createHookData','markedStatus','JEST','hOPqs','toString','LOG_REPORT','GyoYA','../../v2/cliUtils','jest-circus','Error\x20checking\x20CLI\x20readiness:\x20','BEFORE_ALL','../../../helpers/test-observability/utils','41116kSlxvb','XHRSW','zIJDi','initialize','jest-circus/build/state.js','GvehU','asyncError','QHiys','QEamx','BROWSERSTACK_CLI_BIN_SESSION_ID','TestRunFinished','KjTqp','TZgbk','Handling\x20test\x20event\x20for\x20CLI:\x20','hVerc','Oouxj','EVENT','format','aBgrl','teardown','riDks','EventHandler','Exception\x20in\x20jest\x20custom\x20reporter\x20exports\x20with\x20error:\x20','Koxgu','removeAllListeners','YwYRe','testAnalyticsId','GmkgB','ZZErN','\x20for\x20hook\x20type:\x20','TestRunSkipped','run_describe_finish','pid','env','isRunning','util','HookRunStarted','MdfQE','yyxAP','1967wwyBqb','685fPqtOH','removeTestUUID','type','currentHook','title','parent','includes','started_at','getTestFramework','originalTest','afterAll','zIxiD','AFTER_ALL','oGeZx','WsGTn','qwGwV','MPAbN','jest-circus/build/utils.js','trackEvent','failed','../test-observability/test-details','PRE','error','setActiveHook',':hookAnalyticsId','retryOf','shutdown','BEFORE_EACH','RWxFA','TestRunStarted','PwyAk','tXzTY','hook_failure','__jestCurrentTestIdentifier','debug','baTks','1647315GhGgIi','beforeEach','PLAYWRIGHT','registerListeners','isCliEnabled','state','TEST'];a17_0x43df=function(){return _0x1f1432;};return a17_0x43df();}let exportsI;try{exportsI=requireModule(a17_0x5d0d6e(0x118),a17_0x5d0d6e(0x150));}catch{exportsI=requireModule(a17_0x5d0d6e(0x119),'jest-circus');}const initInitialize=exportsI[a17_0x5d0d6e(0x157)],jestUtils=new JestUtils();async function isCLIReady(){const _0x3fdf07=a17_0x5d0d6e,_0x30dec0={'VRoAR':_0x3fdf07(0x110),'CGgrV':function(_0x48e1d6,_0xc7665c){return _0x48e1d6(_0xc7665c);},'aBgrl':_0x3fdf07(0x14f),'FBSCz':function(_0x5c01dc,_0x26b574){return _0x5c01dc(_0x26b574);}};try{const _0x54c572=BrowserstackCLI['getInstance']();if(_0x54c572[_0x3fdf07(0xf5)]()&&_0x54c572[_0x3fdf07(0xc7)]())return logger[_0x3fdf07(0xef)](_0x30dec0['VRoAR']),!![];const _0x3685a2=process[_0x3fdf07(0xc6)][_0x3fdf07(0xae)];if(_0x3685a2&&_0x54c572[_0x3fdf07(0xf5)]()){if(!_0x54c572[_0x3fdf07(0xc7)]())try{const _0x57ae44=_0x30dec0['CGgrV'](require,_0x30dec0[_0x3fdf07(0xb7)]);_0x57ae44[_0x3fdf07(0xfc)](FRAMEWORKS[_0x3fdf07(0x14a)],FRAMEWORKS[_0x3fdf07(0xf3)]),await _0x54c572['bootstrap']();}catch(_0x24eb8d){return _0x30dec0['FBSCz'](debug,'Error\x20bootstrapping\x20CLI\x20in\x20jest\x20adapter:\x20'+util[_0x3fdf07(0xb6)](_0x24eb8d)),![];}return _0x54c572[_0x3fdf07(0xc7)]();}return![];}catch(_0x3c09cc){return _0x30dec0['CGgrV'](debug,_0x3fdf07(0x151)+util[_0x3fdf07(0xb6)](_0x3c09cc)),![];}}function getTestIdentifierForHook(_0x536e1c){const _0x2af490=a17_0x5d0d6e,_0x55510c={};_0x55510c['Oouxj']=function(_0x4fd758,_0x4b4ffc){return _0x4fd758===_0x4b4ffc;},_0x55510c[_0x2af490(0x156)]='beforeEach',_0x55510c['uZspb']=function(_0x576288,_0x26a84b){return _0x576288===_0x26a84b;},_0x55510c[_0x2af490(0xfd)]=_0x2af490(0x134);const _0x3fe2bc=_0x55510c;if(_0x3fe2bc[_0x2af490(0xb4)](_0x536e1c[_0x2af490(0xcf)],_0x3fe2bc['zIJDi'])||_0x3fe2bc['uZspb'](_0x536e1c[_0x2af490(0xcf)],_0x3fe2bc[_0x2af490(0xfd)])){let _0x369b4b=global[_0x2af490(0xee)];if(!_0x369b4b&&_0x3fe2bc[_0x2af490(0xb4)](_0x536e1c[_0x2af490(0xcf)],_0x3fe2bc['vlUDX'])&&_0x536e1c['parent']){const _0x566bc0={};_0x566bc0[_0x2af490(0x121)]=_0x536e1c[_0x2af490(0xd2)][_0x2af490(0x121)],_0x566bc0[_0x2af490(0xd2)]=_0x536e1c[_0x2af490(0xd2)]['parent'],_0x566bc0[_0x2af490(0x15a)]=_0x536e1c['asyncError'],_0x566bc0[_0x2af490(0x103)]=_0x536e1c[_0x2af490(0x103)];const _0x14493e=_0x566bc0;_0x369b4b=jestUtils['createIdentifierFromJestTest'](_0x14493e);}return _0x369b4b;}return global[_0x2af490(0xee)];}function mapHookTypeToState(_0x5672d1){const _0x486ad1=a17_0x5d0d6e,_0x4670aa={};_0x4670aa[_0x486ad1(0x134)]=TestFrameworkState[_0x486ad1(0x152)],_0x4670aa[_0x486ad1(0xd7)]=TestFrameworkState[_0x486ad1(0xd9)],_0x4670aa['beforeEach']=TestFrameworkState[_0x486ad1(0xe8)],_0x4670aa[_0x486ad1(0xf8)]=TestFrameworkState[_0x486ad1(0x135)];const _0x28714e=_0x4670aa;return _0x28714e[_0x5672d1]||TestFrameworkState[_0x486ad1(0xe8)];}function a17_0xcec9(_0x342a1f,_0x29e80f){const _0x43dfbe=a17_0x43df();return a17_0xcec9=function(_0xcec986,_0x117bcd){_0xcec986=_0xcec986-0xad;let _0x12e828=_0x43dfbe[_0xcec986];return _0x12e828;},a17_0xcec9(_0x342a1f,_0x29e80f);}async function handleHookEventCLI(_0x3452c3,_0x2f698f,_0x1448f0){const _0x578672=a17_0x5d0d6e,_0x455172={'pndDV':function(_0x5f0aa0){return _0x5f0aa0();},'lOMTz':function(_0x5ef927){return _0x5ef927();},'OQaOT':function(_0x2214fa,_0x4dc90f){return _0x2214fa===_0x4dc90f;},'ztHWY':_0x578672(0xc9),'RLFWf':function(_0x526722,_0x3de8fc){return _0x526722(_0x3de8fc);},'FPHWh':function(_0x3c444e,_0xe2b3fd){return _0x3c444e===_0xe2b3fd;},'KjTqp':'HookRunFinished','ZZErN':_0x578672(0x139),'TZgbk':function(_0x43ad85,_0x42b1f3){return _0x43ad85===_0x42b1f3;}};logger[_0x578672(0xef)](_0x578672(0x11c)+_0x2f698f+_0x578672(0xc2)+_0x3452c3['type']);try{if(_0x3452c3['fn']&&_0x3452c3['fn'][_0x578672(0x14c)]()[_0x578672(0x143)](/browserstack internal helper hook/))return;let _0x14a206=_0x3452c3[_0x578672(0x12c)];if(!_0x14a206)_0x14a206=_0x455172[_0x578672(0x10d)](uuidv4),_0x3452c3[_0x578672(0x12c)]=_0x14a206;else _0x3452c3[_0x578672(0x149)]&&(_0x14a206=_0x455172[_0x578672(0x142)](uuidv4),_0x3452c3[_0x578672(0x12c)]=_0x14a206,delete _0x3452c3['markedStatus']);_0x455172[_0x578672(0x10c)](_0x2f698f,_0x455172['ztHWY'])&&(_0x3452c3[_0x578672(0xd4)]=new Date()[_0x578672(0x128)]());const _0x52282f=_0x455172['RLFWf'](getTestIdentifierForHook,_0x3452c3);!global[_0x578672(0x127)]&&(global[_0x578672(0x127)]={});if(_0x455172[_0x578672(0x10c)](_0x2f698f,_0x455172[_0x578672(0x108)])){global[_0x578672(0x127)]['currentHook']={'hookUUID':_0x14a206,'testIdentifier':_0x52282f,'hookType':_0x3452c3['type'],'startedAt':new Date()[_0x578672(0x128)]()};const _0x5605a7=BrowserstackCLI[_0x578672(0x141)]()[_0x578672(0xd5)]();_0x5605a7&&_0x5605a7[_0x578672(0xe4)]&&_0x5605a7['setActiveHook'](_0x52282f,_0x14a206,_0x3452c3[_0x578672(0xcf)]);}const _0x5d2138=await jestUtils[_0x578672(0x148)](_0x3452c3,_0x14a206,_0x2f698f,_0x52282f);if(!_0x5d2138)return;const _0x283126=_0x455172['RLFWf'](mapHookTypeToState,_0x3452c3[_0x578672(0xcf)]),_0x3299f9=_0x455172[_0x578672(0x10c)](_0x2f698f,_0x455172[_0x578672(0x108)])?HookState[_0x578672(0xe2)]:HookState[_0x578672(0x11b)],_0x1c41ec=BrowserstackCLI['getInstance']()[_0x578672(0xd5)]();if(_0x1c41ec){const _0x535e61={};_0x535e61[_0x578672(0x130)]=_0x5d2138,await _0x1c41ec[_0x578672(0xdf)](_0x283126,_0x3299f9,_0x535e61);if(_0x455172['FPHWh'](_0x2f698f,_0x455172[_0x578672(0xb0)])){const _0xc0390e={};_0xc0390e['testUUID']=_0x52282f,_0xc0390e[_0x578672(0xcf)]=_0x455172[_0x578672(0xc1)],await _0x1c41ec['trackEvent'](TestFrameworkState[_0x578672(0x14d)],HookState['POST'],_0xc0390e),global[_0x578672(0x127)]&&global[_0x578672(0x127)][_0x578672(0xd0)]&&_0x455172[_0x578672(0xb1)](global[_0x578672(0x127)][_0x578672(0xd0)]['hookUUID'],_0x14a206)&&delete global[_0x578672(0x127)]['currentHook'],_0x1c41ec[_0x578672(0x131)]&&_0x1c41ec[_0x578672(0x131)](_0x52282f,_0x14a206);}}}catch(_0xede95a){logger['error'](_0x578672(0x140)+util['format'](_0xede95a));throw _0xede95a;}}async function handleTestEventCLI(_0x15a9f,_0x5d1fb2,_0x4ef085){const _0x4ed3fa=a17_0x5d0d6e,_0x5bb8aa={};_0x5bb8aa[_0x4ed3fa(0x10a)]=function(_0x235b28,_0x1cfffc){return _0x235b28===_0x1cfffc;},_0x5bb8aa[_0x4ed3fa(0xfe)]=_0x4ed3fa(0xea),_0x5bb8aa[_0x4ed3fa(0x15b)]=function(_0x2ccbd0,_0x256469){return _0x2ccbd0>_0x256469;},_0x5bb8aa[_0x4ed3fa(0x155)]=function(_0x1d0df7,_0x13e5ac){return _0x1d0df7===_0x13e5ac;},_0x5bb8aa[_0x4ed3fa(0xd8)]=function(_0x3c22b1,_0x43abbf){return _0x3c22b1&&_0x43abbf;},_0x5bb8aa[_0x4ed3fa(0x10b)]=_0x4ed3fa(0xe0),_0x5bb8aa['TiUjz']=_0x4ed3fa(0xaf),_0x5bb8aa[_0x4ed3fa(0xc0)]=function(_0x5660be,_0x450c54){return _0x5660be&&_0x450c54;},_0x5bb8aa[_0x4ed3fa(0x10e)]=_0x4ed3fa(0x132);const _0x6dc8fd=_0x5bb8aa;logger[_0x4ed3fa(0xef)](_0x4ed3fa(0xb2)+_0x5d1fb2);try{let _0x6dd58b;if(_0x6dc8fd[_0x4ed3fa(0x10a)](_0x5d1fb2,_0x6dc8fd[_0x4ed3fa(0xfe)])){_0x6dd58b=jestUtils[_0x4ed3fa(0x109)](_0x15a9f),global[_0x4ed3fa(0xee)]=_0x6dd58b,_0x15a9f[_0x4ed3fa(0xbf)]=_0x6dd58b,_0x15a9f['id']=_0x6dd58b,_0x15a9f['started_at']=new Date()[_0x4ed3fa(0x128)]();const _0x2f3f81=_0x4ef085[_0x4ed3fa(0x120)];_0x4ef085[_0x4ed3fa(0x120)]=_0x15a9f,_0x15a9f[_0x4ed3fa(0xe6)]=null;if(_0x6dc8fd[_0x4ed3fa(0x15b)](_0x15a9f[_0x4ed3fa(0x13a)],0x0)&&_0x2f3f81&&_0x6dc8fd[_0x4ed3fa(0x155)](_0x2f3f81[_0x4ed3fa(0xd1)],_0x15a9f[_0x4ed3fa(0xd1)])){_0x15a9f[_0x4ed3fa(0xe6)]=_0x2f3f81[_0x4ed3fa(0xbf)];const _0x4f40d7=await jestUtils[_0x4ed3fa(0xfa)](_0x15a9f,_0x6dd58b,_0x6dc8fd[_0x4ed3fa(0xfe)]),_0x579250=BrowserstackCLI['getInstance']()[_0x4ed3fa(0xd5)]();if(_0x6dc8fd['zIxiD'](_0x4f40d7,_0x579250)){const _0x149958={};_0x149958[_0x4ed3fa(0x132)]=_0x4f40d7,await _0x579250[_0x4ed3fa(0xdf)](TestFrameworkState['TEST'],HookState[_0x4ed3fa(0xe2)],_0x149958);}_0x2f3f81[_0x4ed3fa(0xf6)]=_0x6dc8fd[_0x4ed3fa(0x10b)];const _0x5c4d18=await jestUtils[_0x4ed3fa(0xfa)](_0x2f3f81,_0x2f3f81[_0x4ed3fa(0xbf)],_0x6dc8fd['TiUjz']);if(_0x6dc8fd['GmkgB'](_0x5c4d18,_0x579250)){const _0x28cec2={};_0x28cec2['test']=_0x5c4d18,await _0x579250['trackEvent'](TestFrameworkState['TEST'],HookState[_0x4ed3fa(0x11b)],_0x28cec2);}}else{const _0x13037c=await jestUtils[_0x4ed3fa(0xfa)](_0x15a9f,_0x6dd58b,_0x6dc8fd[_0x4ed3fa(0xfe)]),_0x5ae7af=BrowserstackCLI['getInstance']()[_0x4ed3fa(0xd5)]();if(_0x6dc8fd['zIxiD'](_0x13037c,_0x5ae7af)){const _0x553281={};_0x553281[_0x4ed3fa(0x132)]=_0x13037c,await _0x5ae7af[_0x4ed3fa(0xdf)](TestFrameworkState[_0x4ed3fa(0xf7)],HookState[_0x4ed3fa(0xe2)],_0x553281);}}}else{_0x6dd58b=_0x15a9f['testAnalyticsId']||_0x15a9f['id']||global[_0x4ed3fa(0xee)];const _0x2373b9=await jestUtils['createTestFrameworkData'](_0x15a9f,_0x6dd58b,_0x5d1fb2),_0x131435=BrowserstackCLI['getInstance']()[_0x4ed3fa(0xd5)]();if(_0x6dc8fd[_0x4ed3fa(0xc0)](_0x2373b9,_0x131435)){const _0x327580={};_0x327580['test']=_0x2373b9,_0x327580[_0x4ed3fa(0xd6)]=_0x15a9f,await _0x131435[_0x4ed3fa(0xdf)](TestFrameworkState[_0x4ed3fa(0xf7)],HookState['POST'],_0x327580);const _0x3a5f92={};_0x3a5f92['testUUID']=_0x6dd58b,_0x3a5f92[_0x4ed3fa(0xcf)]=_0x6dc8fd['KsrIC'],await _0x131435[_0x4ed3fa(0xdf)](TestFrameworkState[_0x4ed3fa(0x14d)],HookState[_0x4ed3fa(0x11b)],_0x3a5f92);}}}catch(_0x585d7c){logger[_0x4ed3fa(0xe3)](_0x4ed3fa(0x122)+util[_0x4ed3fa(0xb6)](_0x585d7c));throw _0x585d7c;}}exportsI['initialize']=(..._0x389f2a)=>{const _0x4aa70d=a17_0x5d0d6e,_0x2330fb={'Nubll':_0x4aa70d(0x13e),'riDks':function(_0x365d3c,_0x19736b){return _0x365d3c(_0x19736b);},'mWhPL':function(_0x5e5f66){return _0x5e5f66();},'uAwuq':function(_0x1e107a,_0x1253ea,_0x560100,_0x48ebe5){return _0x1e107a(_0x1253ea,_0x560100,_0x48ebe5);},'hMizC':'HookRunStarted','WsGTn':_0x4aa70d(0x125),'yEfJw':function(_0x35970d,_0x37734e){return _0x35970d(_0x37734e);},'tXzTY':'HookRunFinished','PwyAk':'hook_failure','oGeZx':_0x4aa70d(0x134),'wLFMd':_0x4aa70d(0xf2),'tbVDK':_0x4aa70d(0xf8),'baTks':function(_0x2e7bee,_0x10b5bb){return _0x2e7bee>_0x10b5bb;},'Koxgu':function(_0x39bc72,_0x100f2b){return _0x39bc72(_0x100f2b);},'ZsMfX':function(_0x488246,_0x49a75b,_0x466f3e,_0x57c2d2){return _0x488246(_0x49a75b,_0x466f3e,_0x57c2d2);},'MdfQE':function(_0x30b920,_0x5d83d0){return _0x30b920(_0x5d83d0);},'PQleF':_0x4aa70d(0x102),'ZaMaD':function(_0xfc052c){return _0xfc052c();},'QEamx':function(_0x258c9e,_0x260a17,_0x486f43,_0x201e06){return _0x258c9e(_0x260a17,_0x486f43,_0x201e06);},'RWxFA':'TestRunStarted','msTMI':_0x4aa70d(0x101),'yyxAP':function(_0x3aef25,_0x204deb){return _0x3aef25(_0x204deb);},'hOPqs':function(_0x70a064){return _0x70a064();},'tfEKU':'TestRunFinished','yKPEY':_0x4aa70d(0x124),'YlanQ':function(_0xef4fc8,_0x3a9266){return _0xef4fc8(_0x3a9266);},'UIVvs':function(_0x20083d){return _0x20083d();},'OxcBK':_0x4aa70d(0xc3),'vvsgW':_0x4aa70d(0xc4),'YwYRe':_0x4aa70d(0xb8),'CkpLV':function(_0x5d4b67,_0x4dc3a0,_0x453695){return _0x5d4b67(_0x4dc3a0,_0x453695);},'GvehU':_0x4aa70d(0x158),'meYGU':'jest-circus','MPAbN':_0x4aa70d(0xde),'QGtSz':_0x4aa70d(0xba),'qwGwV':function(_0x3a588b,_0xcffb89){return _0x3a588b(_0xcffb89);},'GyoYA':function(_0x1e1d46,..._0x5a9733){return _0x1e1d46(..._0x5a9733);}};try{const _0x16dfa2=new ObservabilityReporter();_0x2330fb['ZaMaD'](shouldProcessEventForTesthub)&&(_0x2330fb[_0x4aa70d(0x14b)](patchConsoleLogger),_0x16dfa2[_0x4aa70d(0xf4)]());let _0x1640ea;try{_0x1640ea=_0x2330fb[_0x4aa70d(0x104)](requireModule,_0x2330fb[_0x4aa70d(0x159)],_0x2330fb[_0x4aa70d(0x138)]);}catch{_0x1640ea=_0x2330fb[_0x4aa70d(0xca)](requireModule,_0x2330fb[_0x4aa70d(0x138)]);}let _0x293ec0;try{_0x293ec0=_0x2330fb[_0x4aa70d(0x104)](requireModule,_0x2330fb[_0x4aa70d(0xdd)],_0x2330fb[_0x4aa70d(0x138)])['makeSingleTestResult'];}catch{_0x293ec0=_0x2330fb[_0x4aa70d(0x106)](requireModule,_0x2330fb['meYGU'])[_0x4aa70d(0x12d)];}_0x2330fb[_0x4aa70d(0x14b)](shouldProcessEventForTesthub)&&_0x1640ea[_0x4aa70d(0x133)](_0x2330fb['CkpLV'](o11yErrorHandler,async(_0x3465dc,_0x1f8232)=>{const _0x4fe1e4=_0x4aa70d;switch(_0x3465dc['name']){case _0x2330fb[_0x4fe1e4(0x147)]:if(_0x2330fb['riDks'](shouldProcessEventForTesthub,testHubConstants[_0x4fe1e4(0xb5)]['HookStarted'])){if(_0x3465dc['hook']['fn']&&_0x3465dc['hook']['fn']['toString']()[_0x4fe1e4(0x143)](/browserstack internal helper hook/))break;if(BrowserstackCLI[_0x4fe1e4(0x141)]()[_0x4fe1e4(0xf5)]()&&await _0x2330fb[_0x4fe1e4(0x11f)](isCLIReady))try{await _0x2330fb[_0x4fe1e4(0x13c)](handleHookEventCLI,_0x3465dc[_0x4fe1e4(0x139)],_0x2330fb[_0x4fe1e4(0x12e)],_0x1f8232);break;}catch(_0x10d412){_0x2330fb[_0x4fe1e4(0xb9)](debug,_0x4fe1e4(0x136)+util[_0x4fe1e4(0xb6)](_0x10d412));}if(!_0x3465dc[_0x4fe1e4(0x139)][_0x4fe1e4(0x12c)]){const _0x488ebd=TestDetails['setTestUUID'](process[_0x4fe1e4(0xc5)]+':hookAnalyticsId');_0x3465dc[_0x4fe1e4(0x139)][_0x4fe1e4(0x12c)]=_0x488ebd;}else _0x3465dc[_0x4fe1e4(0x139)][_0x4fe1e4(0x149)]&&(_0x3465dc[_0x4fe1e4(0x139)][_0x4fe1e4(0x12c)]=TestDetails[_0x4fe1e4(0x11d)](process[_0x4fe1e4(0xc5)]+_0x4fe1e4(0xe5)),delete _0x3465dc[_0x4fe1e4(0x139)][_0x4fe1e4(0x149)]);_0x3465dc[_0x4fe1e4(0x139)][_0x4fe1e4(0xd4)]=new Date()['toISOString'](),await _0x16dfa2[_0x4fe1e4(0x115)](_0x3465dc[_0x4fe1e4(0x139)],undefined,![],_0x2330fb[_0x4fe1e4(0x12e)]);}break;case _0x2330fb[_0x4fe1e4(0xdb)]:if(_0x2330fb['yEfJw'](shouldProcessEventForTesthub,testHubConstants[_0x4fe1e4(0xb5)][_0x4fe1e4(0x129)])){if(BrowserstackCLI['getInstance']()[_0x4fe1e4(0xf5)]()&&await _0x2330fb['mWhPL'](isCLIReady))try{await _0x2330fb[_0x4fe1e4(0x13c)](handleHookEventCLI,_0x3465dc[_0x4fe1e4(0x139)],_0x2330fb['tXzTY'],_0x1f8232);break;}catch(_0x1a08ef){_0x2330fb['yEfJw'](debug,_0x4fe1e4(0x136)+util[_0x4fe1e4(0xb6)](_0x1a08ef));}await _0x16dfa2[_0x4fe1e4(0x115)](_0x3465dc[_0x4fe1e4(0x139)],undefined,![],_0x2330fb[_0x4fe1e4(0xec)]),TestDetails[_0x4fe1e4(0xce)](process[_0x4fe1e4(0xc5)]+_0x4fe1e4(0xe5));}break;case _0x2330fb[_0x4fe1e4(0xeb)]:[_0x2330fb[_0x4fe1e4(0xda)],_0x2330fb[_0x4fe1e4(0x12f)],_0x2330fb[_0x4fe1e4(0x123)]][_0x4fe1e4(0xd3)](_0x3465dc['hook'][_0x4fe1e4(0xcf)])&&(_0x16dfa2[_0x4fe1e4(0xed)]=_0x3465dc[_0x4fe1e4(0x139)][_0x4fe1e4(0xcf)]),_0x1f8232['unhandledErrors']&&_0x2330fb[_0x4fe1e4(0xf0)](_0x1f8232['unhandledErrors']['length'],0x0)&&(_0x3465dc['hook'][_0x4fe1e4(0x13d)]=[_0x1f8232[_0x4fe1e4(0x11e)][0x0][0x0]]);if(_0x2330fb[_0x4fe1e4(0xbc)](shouldProcessEventForTesthub,testHubConstants[_0x4fe1e4(0xb5)][_0x4fe1e4(0x129)])){if(BrowserstackCLI[_0x4fe1e4(0x141)]()[_0x4fe1e4(0xf5)]()&&await _0x2330fb[_0x4fe1e4(0x11f)](isCLIReady))try{await _0x2330fb['ZsMfX'](handleHookEventCLI,_0x3465dc[_0x4fe1e4(0x139)],_0x2330fb[_0x4fe1e4(0xec)],_0x1f8232);break;}catch(_0x3a80c2){_0x2330fb['MdfQE'](debug,_0x4fe1e4(0x136)+util[_0x4fe1e4(0xb6)](_0x3a80c2));}await _0x16dfa2[_0x4fe1e4(0x115)](_0x3465dc[_0x4fe1e4(0x139)],undefined,![],_0x2330fb[_0x4fe1e4(0xec)]),TestDetails[_0x4fe1e4(0xce)](process[_0x4fe1e4(0xc5)]+_0x4fe1e4(0xe5));}break;case _0x2330fb[_0x4fe1e4(0x12b)]:if(_0x2330fb[_0x4fe1e4(0x11f)](shouldProcessEventForTesthub)){if(BrowserstackCLI['getInstance']()[_0x4fe1e4(0xf5)]()&&await _0x2330fb[_0x4fe1e4(0xf9)](isCLIReady))try{await _0x2330fb[_0x4fe1e4(0xad)](handleTestEventCLI,_0x3465dc[_0x4fe1e4(0x132)],_0x2330fb[_0x4fe1e4(0xe9)],_0x16dfa2);break;}catch(_0x37654c){_0x2330fb['Koxgu'](debug,_0x4fe1e4(0x136)+util[_0x4fe1e4(0xb6)](_0x37654c));}await _0x16dfa2['testStarted'](_0x3465dc[_0x4fe1e4(0x132)]);}break;case _0x2330fb[_0x4fe1e4(0xfb)]:_0x3465dc[_0x4fe1e4(0x132)]={..._0x2330fb[_0x4fe1e4(0xcb)](_0x293ec0,_0x3465dc[_0x4fe1e4(0x132)]),..._0x3465dc[_0x4fe1e4(0x132)]};if(_0x2330fb[_0x4fe1e4(0xf9)](shouldProcessEventForTesthub)){if(!_0x3465dc['test']['markedStatus']){_0x3465dc['test'][_0x4fe1e4(0x149)]=!![];if(BrowserstackCLI[_0x4fe1e4(0x141)]()[_0x4fe1e4(0xf5)]()&&await _0x2330fb[_0x4fe1e4(0x14b)](isCLIReady))try{await _0x2330fb['ZsMfX'](handleTestEventCLI,_0x3465dc[_0x4fe1e4(0x132)],_0x2330fb['tfEKU'],_0x16dfa2);break;}catch(_0xa77a05){_0x2330fb[_0x4fe1e4(0xca)](debug,'Error\x20routing\x20to\x20JestTestFramework:\x20'+util[_0x4fe1e4(0xb6)](_0xa77a05));}await _0x16dfa2['sendTestRunEvent'](_0x3465dc[_0x4fe1e4(0x132)]);}}break;case _0x2330fb['yKPEY']:_0x3465dc['test']={..._0x2330fb[_0x4fe1e4(0x106)](_0x293ec0,_0x3465dc[_0x4fe1e4(0x132)]),..._0x3465dc[_0x4fe1e4(0x132)]};if(_0x2330fb['UIVvs'](shouldProcessEventForTesthub)){if(!_0x3465dc[_0x4fe1e4(0x132)][_0x4fe1e4(0x149)]){_0x3465dc['test'][_0x4fe1e4(0x149)]=!![];if(BrowserstackCLI[_0x4fe1e4(0x141)]()[_0x4fe1e4(0xf5)]()&&await _0x2330fb['ZaMaD'](isCLIReady))try{await _0x2330fb[_0x4fe1e4(0xad)](handleTestEventCLI,_0x3465dc['test'],_0x2330fb['OxcBK'],_0x16dfa2);break;}catch(_0x2a187d){_0x2330fb[_0x4fe1e4(0xb9)](debug,_0x4fe1e4(0x136)+util['format'](_0x2a187d));}await _0x16dfa2[_0x4fe1e4(0x115)](_0x3465dc[_0x4fe1e4(0x132)],undefined,![],_0x2330fb['OxcBK']);}}break;case _0x2330fb[_0x4fe1e4(0x114)]:_0x16dfa2[_0x4fe1e4(0xed)]=null;break;case _0x2330fb[_0x4fe1e4(0xbe)]:await RequestQueueHandler[_0x4fe1e4(0x141)]()[_0x4fe1e4(0xe7)](),process[_0x4fe1e4(0xbd)]();break;default:}},_0x2330fb['QGtSz']));}catch(_0x3c1104){_0x2330fb[_0x4aa70d(0xdc)](debug,'Error\x20while\x20adding\x20o11y\x20event\x20handler,\x20'+_0x3c1104);}return _0x2330fb[_0x4aa70d(0x14e)](initInitialize,..._0x389f2a);};try{Object['keys'](exportsI)[a17_0x5d0d6e(0x117)](_0x2d2f34=>{const _0xc6c1bc=a17_0x5d0d6e,_0x2a6867={'hVerc':function(_0x2e0745,_0x3811fb){return _0x2e0745(_0x3811fb);}};try{exports&&(exports[_0x2d2f34]=exportsI[_0x2d2f34]);}catch(_0x350297){_0x2a6867[_0xc6c1bc(0xb3)](debug,_0xc6c1bc(0x107)+_0x350297);}});}catch(a17_0x4a25aa){debug(a17_0x5d0d6e(0xbb)+a17_0x4a25aa);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x3e2400=a18_0xdc64;(function(_0x589f7e,_0x1421e5){const _0x4021d5=a18_0xdc64,_0x518e0a=_0x589f7e();while(!![]){try{const _0x1e6d67=-parseInt(_0x4021d5(0x80))/0x1*(parseInt(_0x4021d5(0x71))/0x2)+-parseInt(_0x4021d5(0x7a))/0x3+-parseInt(_0x4021d5(0x75))/0x4*(parseInt(_0x4021d5(0x76))/0x5)+parseInt(_0x4021d5(0x70))/0x6+parseInt(_0x4021d5(0x6f))/0x7*(-parseInt(_0x4021d5(0x77))/0x8)+parseInt(_0x4021d5(0x7c))/0x9*(parseInt(_0x4021d5(0x6d))/0xa)+-parseInt(_0x4021d5(0x81))/0xb*(-parseInt(_0x4021d5(0x7f))/0xc);if(_0x1e6d67===_0x1421e5)break;else _0x518e0a['push'](_0x518e0a['shift']());}catch(_0x78a149){_0x518e0a['push'](_0x518e0a['shift']());}}}(a18_0x3451,0x6652a));function a18_0xdc64(_0x4b27f2,_0x54e684){const _0x34519a=a18_0x3451();return a18_0xdc64=function(_0xdc642b,_0x225f37){_0xdc642b=_0xdc642b-0x6d;let _0x43a8ea=_0x34519a[_0xdc642b];return _0x43a8ea;},a18_0xdc64(_0x4b27f2,_0x54e684);}const Sequencer=require(a18_0x3e2400(0x7d))['default'];function a18_0x3451(){const _0x4fd8a2=['135wRlOfj','@jest/test-sequencer','sort','4462632kHfrrU','398973RHmrwa','22sgbcLI','60470FUzqlz','env','301OfOoPB','4836816hymzDC','4zIeILz','filter','includes','exports','1492ODxJnG','1615iWYdbm','49368bIXOwA','path','split','113163OYPkXu','JEST_TEST_ORDER'];a18_0x3451=function(){return _0x4fd8a2;};return a18_0x3451();}class CustomSequencer extends Sequencer{[a18_0x3e2400(0x7e)](_0x5e4c7c){const _0x2f14b7=a18_0x3e2400,_0x34ca66=process[_0x2f14b7(0x6e)][_0x2f14b7(0x7b)];if(!_0x34ca66)return _0x5e4c7c;const _0x42838d=_0x34ca66[_0x2f14b7(0x79)](','),_0x59087a=new Map(_0x5e4c7c[_0x2f14b7(0x72)](_0x4e3ae8=>_0x42838d[_0x2f14b7(0x73)](_0x4e3ae8['path']))['map'](_0x2a8bf3=>[_0x2a8bf3[_0x2f14b7(0x78)],_0x2a8bf3]));return _0x42838d['map'](_0x1d9c15=>_0x59087a['get'](_0x1d9c15))[_0x2f14b7(0x72)](Boolean);}}module[a18_0x3e2400(0x74)]=CustomSequencer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a19_0x3bdb(){const _0x385cb6=['runTests','44pIEUBp','1454322BzeSJO','4MlHZQr','default','value','EMXUb','serial__','423040yTyQql','2BGuBKV','xWKxl','jest-runner','config','freeze','2139420NpjIgl','forEach','rfgbQ','length','__esModule','defineProperty','897480iUcbJB','293353EbNDok','kXJRV','_globalConfig','kusVP','push','exports','testEnvironmentOptions','919683IhjKwr','32YDZjQZ','slice','212202eHxuea','context','7BlwbjN'];a19_0x3bdb=function(){return _0x385cb6;};return a19_0x3bdb();}const a19_0x2724e4=a19_0x5443;(function(_0x34e83c,_0x1b7ba1){const _0x4d5a8f=a19_0x5443,_0x44acb0=_0x34e83c();while(!![]){try{const _0x31aef3=parseInt(_0x4d5a8f(0xba))/0x1*(-parseInt(_0x4d5a8f(0xae))/0x2)+parseInt(_0x4d5a8f(0xc1))/0x3*(-parseInt(_0x4d5a8f(0xca))/0x4)+parseInt(_0x4d5a8f(0xb9))/0x5+-parseInt(_0x4d5a8f(0xc9))/0x6*(parseInt(_0x4d5a8f(0xc6))/0x7)+parseInt(_0x4d5a8f(0xc2))/0x8*(parseInt(_0x4d5a8f(0xc4))/0x9)+parseInt(_0x4d5a8f(0xad))/0xa+-parseInt(_0x4d5a8f(0xc8))/0xb*(-parseInt(_0x4d5a8f(0xb3))/0xc);if(_0x31aef3===_0x1b7ba1)break;else _0x44acb0['push'](_0x44acb0['shift']());}catch(_0x1a8077){_0x44acb0['push'](_0x44acb0['shift']());}}}(a19_0x3bdb,0x2da47));const {requireModule,isBrowserstackInfra}=require('../../../helpers/helper'),a19_0x17d4e9={};function a19_0x5443(_0x214ead,_0x54b2c7){const _0x3bdb2d=a19_0x3bdb();return a19_0x5443=function(_0x544345,_0x528649){_0x544345=_0x544345-0xac;let _0x59b80e=_0x3bdb2d[_0x544345];return _0x59b80e;},a19_0x5443(_0x214ead,_0x54b2c7);}a19_0x17d4e9[a19_0x2724e4(0xcc)]=!![],Object[a19_0x2724e4(0xb8)](exports,a19_0x2724e4(0xb7),a19_0x17d4e9),exports[a19_0x2724e4(0xcb)]=void 0x0;function _interopRequireDefault(_0x242c15){const _0x35a988=a19_0x2724e4;return _0x242c15&&_0x242c15[_0x35a988(0xb7)]?_0x242c15:{'default':_0x242c15};}const JestRunner=_interopRequireDefault(requireModule(a19_0x2724e4(0xb0)))[a19_0x2724e4(0xcb)];class TestRunner extends JestRunner{constructor(..._0x63b4e1){super(..._0x63b4e1);}['runTests'](..._0x2e8ee0){const _0x2a422d=a19_0x2724e4,_0x52e3f9={'xWKxl':function(_0x4a6a29){return _0x4a6a29();},'EMXUb':function(_0x43704e,_0x5d07be){return _0x43704e-_0x5d07be;},'kXJRV':function(_0xb6f7ec,_0x49c1fb){return _0xb6f7ec*_0x49c1fb;},'IZatE':function(_0x35573c,_0x213fce){return _0x35573c===_0x213fce;},'kusVP':'false','rfgbQ':function(_0x14a42a,_0x3b8382){return _0x14a42a<_0x3b8382;}};if(!_0x52e3f9[_0x2a422d(0xaf)](isBrowserstackInfra))return super['runTests'](..._0x2e8ee0);const _0x3e338b=_0x2e8ee0[0x0],_0x16756a=_0x2e8ee0[_0x52e3f9[_0x2a422d(0xcd)](_0x2e8ee0[_0x2a422d(0xb6)],0x1)],_0x10ceb1=_0x3e338b[0x0][_0x2a422d(0xc5)]['config'][_0x2a422d(0xc0)]['capabilities'],_0x479650=_0x3e338b[0x0][_0x2a422d(0xc5)][_0x2a422d(0xb1)][_0x2a422d(0xc0)]['parallels__'];_0x479650&&(this['_globalConfig']=Object[_0x2a422d(0xb2)]({...this[_0x2a422d(0xbc)],'maxWorkers':_0x52e3f9[_0x2a422d(0xbb)](_0x479650,_0x10ceb1[_0x2a422d(0xb6)])}));_0x52e3f9['IZatE'](_0x3e338b[0x0][_0x2a422d(0xc5)]['config']['testEnvironmentOptions'][_0x2a422d(0xac)],_0x52e3f9[_0x2a422d(0xbd)])&&(_0x16756a&&(_0x16756a['serial']=![]));const _0x1e0c01=[];for(let _0x4a0f55=0x0;_0x52e3f9[_0x2a422d(0xb5)](_0x4a0f55,_0x3e338b['length']);_0x4a0f55++){const _0x3bb2d3=[];_0x10ceb1[_0x2a422d(0xb4)]((_0x32aa3f,_0x5cf0d5)=>{const _0x509e54=_0x2a422d,_0x357c72={..._0x3e338b[_0x4a0f55]},_0x79ad45=_0x357c72;_0x79ad45[_0x509e54(0xc5)]=Object['freeze']({..._0x79ad45[_0x509e54(0xc5)],'config':{..._0x79ad45['context']['config'],'capability':_0x32aa3f,'browserstackPlatformIndex':_0x5cf0d5}}),_0x3bb2d3[_0x509e54(0xbe)](_0x79ad45);}),_0x1e0c01[_0x2a422d(0xbe)](..._0x3bb2d3);}return super[_0x2a422d(0xc7)](_0x1e0c01,..._0x2e8ee0[_0x2a422d(0xc3)](0x1));}}module[a19_0x2724e4(0xbf)]=TestRunner;
|