Basic setup
createBrowserDriver is async because OPFS initialization requires awaiting.
Filesystem options
Choose between persistent OPFS storage or a transient in-memory filesystem.Networking
Enable the browser fetch adapter to allow sandboxed code to make HTTP requests.Worker URL
Customize the worker script URL if you need to serve it from a specific path.Differences from Node driver
- Async creation:
createBrowserDriverreturns aPromise - No child processes:
CommandExecutoris not available - No DNS: only fetch-based networking, no
dnsLookup - OPFS limitations: atomic rename is not supported