From 07656e9bfe862130e5704ed929cff43fa2073cb6 Mon Sep 17 00:00:00 2001 From: Priyansh Garg Date: Wed, 2 Nov 2022 15:25:53 +0530 Subject: [PATCH] Return mode in AndroidSetupResult. --- package.json | 2 +- src/commands/android/index.ts | 3 ++- src/commands/android/interfaces.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8b57066..2c67dbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nightwatch/mobile-helper", - "version": "0.0.1", + "version": "0.1.2", "description": "Easily setup all the requirements needed to get started with mobile-web testing using Nightwatch.", "main": "dist/index.js", "bin": "./index.js", diff --git a/src/commands/android/index.ts b/src/commands/android/index.ts index efefc22..e549e40 100644 --- a/src/commands/android/index.ts +++ b/src/commands/android/index.ts @@ -97,7 +97,8 @@ export class AndroidSetup { return { status: result, - setup: !!this.options.setup + setup: !!this.options.setup, + mode: setupConfigs.mode || 'real' }; } diff --git a/src/commands/android/interfaces.ts b/src/commands/android/interfaces.ts index dc6c0f3..eefe9c8 100644 --- a/src/commands/android/interfaces.ts +++ b/src/commands/android/interfaces.ts @@ -1,6 +1,7 @@ export interface AndroidSetupResult { status: boolean; setup: boolean; + mode: Required['mode']; } export interface AvailableOptions {