Skip to content

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

testing/worker ​

@probe-web/client/testing/worker: the fake-probe worker, for driving the WebUSB transport in tests and demos without hardware. Pass it as the worker of a webusb transport.

Example ​

ts
const { createFakeLocalWorker } = await import('@probe-web/client/testing/worker');
const client = await Client.connect({ kind: 'webusb', worker: createFakeLocalWorker() });

Functions ​