Skip to content

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

Function: createFakeLocalWorker()

ts
function createFakeLocalWorker(opts?): Worker;

Defined in: testing/fake-worker.ts:23

A worker running probe-rs with a fake probe and a mocked core (probe_rs::integration), so the WebUSB transport can be driven without hardware.

It lives here, not in the library, because a bundler emits a worker's chunk wherever it sees the URL: importing this module is what pulls the test-only 10 MB wasm module into a bundle. log sets probe-rs's tracing level in the worker, as for createLocalWorker.

Parameters

ParameterType
opts{ log?: string; }
opts.log?string

Returns

Worker