Skip to content

probe-web / @probe-web/client / testing

testing

@probe-web/client/testing: a scripted stand-in for index!Debugger, for UI and adapter tests without hardware. For the WebUSB transport with a fake probe, see @probe-web/client/testing/worker.

Example

ts
import { FakeDebugger } from '@probe-web/client/testing';

const dbg = new FakeDebugger();
await dbg.continue();
dbg.hit(); // the "firmware" reaches a breakpoint: a `stopped` event fires
expect(dbg.calls).toEqual(['continue']);

Classes