This documentation is available as Markdown. For the complete index, see llms.txt. Skip to content

Configuration

For the complete documentation index, see llms.txt

Configuration lives in unotest.config.{js,mjs,ts} at your project root, auto-discovered by the CLI and MCP server.

FieldTypeDefaultDescription
baseUrlstring (URL)Base for relative goto() paths. If unset, scenarios use absolute URLs.
browsers("chromium" / "firefox" / "webkit")[]["chromium"]Browser families to run. Single in dev; CI can run all three.
channel"chrome" / "msedge" / "chrome-beta" / nullnullFor chromium: use a system browser (zero download) or bundled Chromium (null).
viewport{ width, height }{ 1280, 720 }Browser viewport size.
retry.countint 0–100Retries for transient failures. Off in dev; 1+ in CI.
retry.on("transient" / "network" / "crash")[]["transient"]Which failure classes retry. Assertion failures never retry.
failureBundle.tier1true (locked)trueAlways on: error + console + semantic DOM snapshot + DSL trace.
failureBundle.tier2booleantrueScreenshots (viewport + element-focused).
failureBundle.tier3{ network, video }{ false, false }HAR + video. Not wired yet — leave off.
failureBundle.retention{ runs, days }{ 20, 7 }Keep N recent runs; delete older than D days.
failureBundle.storageDirstring.unotest/failuresWhere failure bundles are written.
dialogPolicy"accept" / "dismiss" / "manual""accept"How native dialogs (alert/confirm) are handled.
storageStatestring (path)Playwright storageState.json for cached login.
defaultTimeoutMsint3000Action / locator-resolution timeout. Override per call.
defaultNavigationTimeoutMsint15000Navigation timeout (goto/reload/waitForUrl).
testDirstringunotest/e2eScenario directory.
helpersDirstringunotest/e2e/_helpersHelper functions directory.
sandbox.shellCwdstringcwdWorking directory for shell().
sandbox.databasestring (URL)Connection string for dbQuery/dbExec (postgres://, mysql://, sqlite:).
sandbox.apiBaseUrlstring (URL)Base URL for apiCall(method, path).
linter.enabledbooleantrueEnable the scenario linter.
mcp.transport"stdio""stdio"MCP server transport (stdio in the current release).