Skip to content

Commit

Permalink
move resetappstate
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmos committed Feb 9, 2022
1 parent c946500 commit 35b5bbc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions detox/src/devices/runtime/RuntimeDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ class RuntimeDevice {
this._processes[_bundleId] = undefined;
}

async resetAppState() {
await traceCall('resetAppState', () => {
return this.deviceDriver.resetAppState(this._currentApp.binaryPath, this._currentApp.bundleId);
});
}

async installApp(binaryPath, testBinaryPath) {
await traceCall('appInstall', () => {
const currentApp = binaryPath ? { binaryPath, testBinaryPath } : this._getCurrentApp();
Expand Down Expand Up @@ -420,12 +426,6 @@ class RuntimeDevice {
this._currentApp.bundleId = await this.deviceDriver.getBundleIdFromBinary(binaryPath);
}
}

async resetAppState() {
await traceCall('resetAppState', () => {
return this.deviceDriver.resetAppState(this._currentApp.binaryPath, this._currentApp.bundleId);
});
}
}

module.exports = RuntimeDevice;

0 comments on commit 35b5bbc

Please sign in to comment.