provision method. Call one at the beginning of each test.
- Launches or installs the app in the sandbox. The Chrome methods also wait until Chrome is ready.
- Starts the Dashcam recording, unless you turned it off with
dashcam: false. - Does nothing when the client was created with
reconnect: true, because the app is already running.
chrome(options)
Opens Chrome at a URL.chromeExtension(options)
Opens Chrome with an extension loaded.Pass either
extensionId or extensionPath. It throws if you pass neither.vscode(options)
Opens VS Code, optionally with a folder and extensions.installer(options)
Downloads a file into the sandbox, installs it, and returns the downloaded file’s path.
Other file types are downloaded but not installed.
electron(options)
Opens an Electron app that’s already in the sandbox.dashcam(options)
Starts the Dashcam recording with your own settings. The other provision methods start it for you, so call this only to change the log file, the log name, or the recording’s title.Complete example
tests/extension.test.mjs
Related
- Client & connection: create and connect the client
- exec(): run commands in the sandbox, for example to fetch files before provisioning
- Dashcam: how runs are recorded
- Examples: complete tests that install and launch apps

