UNPKG

detox

Version:

E2E tests and automation for mobile

13 lines (10 loc) 316 B
const FreeDeviceFinder = require('../FreeDeviceFinder'); class FreeEmulatorFinder extends FreeDeviceFinder { /** * @override */ async _isDeviceMatching(candidate, avdName) { return candidate.type === 'emulator' && (await candidate.queryName()) === avdName; } } module.exports = FreeEmulatorFinder;