The openApp.js utility file is a great work around for local development; however, when bootstrapping / setting up Detox, the detoxrc.js file can refer to a config format such as ios.sim.debug or some other intermediate nomenclature between & .
As such, the conditional designed to check for a debug environment, only passes if it is the 2nd element of a "." split array.
I propose checking to see if the configuration name contains the word "debug" instead.
The openApp.js utility file is a great work around for local development; however, when bootstrapping / setting up Detox, the & .
detoxrc.js
file can refer to a config format such asios.sim.debug
or some other intermediate nomenclature betweenAs such, the conditional designed to check for a
debug
environment, only passes if it is the 2nd element of a "." split array.I propose checking to see if the configuration name contains the word "debug" instead.