webdriverio/__mocks__/repl.ts
2022-07-19 11:11:28 +00:00

11 lines
207 B
TypeScript

import { vi } from 'vitest'
class ReplMock {
start = vi.fn().mockReturnValue({ on: this.on.bind(this) })
on (event: string, cb: Function) {
cb(event)
}
}
export default new ReplMock()