Get your setup working faster. Join our Discord for optimisation tips from elite testers.
Join our Discord
Mobilewright configurations
Reference for Mobilewright’s test-runner configuration options in mobilewright.config.ts.
These options sit alongside the driver configuration in mobilewright.config.ts, and apply the same way whether you run locally or on BrowserStack App Automate:
| Configuration | Type | Default | Description |
|---|---|---|---|
| Config file resolution |
mobilewright.config.ts, .js, or .mjs
|
mobilewright.config.ts (first match) |
Mobilewright searches for a config file in this order. Use --config <path> to point at a different file. |
testMatch |
Glob pattern | **/*.{test,spec}.{js,ts,mjs} |
Controls which files Mobilewright treats as test files. |
timeout |
Number, in milliseconds | None | Sets a per-test timeout. |
reporter |
String | list |
Sets the output format, such as list, html, json, or junit. |
use block |
Object | None | Sets shared defaults, such as action and app-launch timeouts, that apply unless a project overrides them. |
expect block |
Object | timeout: 5000 |
Sets the default timeout, in milliseconds, for expect() assertions. |
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!