function _initDetoxConfig() {
    detoxConfigDriver = new DetoxConfigDriver(_.cloneDeep(DETOX_CONFIG_BASE));

    jest.mock('../configuration');
    configuration = jest.requireMock('../configuration');
    configuration.composeDetoxConfig.mockResolvedValue(detoxConfigDriver.detoxConfig);
  }
@type {jest.Mock<import('../utils/retry')>}