import { EventEmitter } from 'events' ; import type { HID } from 'node-hid' ; export class DummyHID extends EventEmitter implements HID { public path : string ; constructor ( devicePath ) { super ( ) ; expect ( typeof devicePath ) . toEqual ( 'string' ) ; this . path = devicePath ; } public close ( ) { throw new Error ( 'Not implemented' ) ; } public pause ( ) { throw new Error ( 'Not implemented' ) ; } public read ( _callback ) { throw new Error ( 'Not implemented' ) ; } public readSync ( ) { throw new Error ( 'Not implemented' ) ; } public readTimeout ( _timeOut ) { throw new Error ( 'Not implemented' ) ; } public sendFeatureReport ( _data ) { throw new Error ( 'Not implemented' ) ; } public getFeatureReport ( _reportId , _reportLength ) { throw new Error ( 'Not implemented' ) ; } public resume ( ) { throw new Error ( 'Not implemented' ) ; } public write ( _values ) { throw new Error ( 'Not implemented' ) ; } public setDriverType ( _type ) { throw new Error ( 'Not implemented' ) ; } public setNonBlocking ( _no_block ) { throw new Error ( 'Method not implemented.' ) ; } }