@qawolf/flows entry point exposes cross-platform helpers and types.
Primary exports
platform.targetconfigureTarget(...)getCurrentScope()resetTarget()FailWithoutRetryError
type Targettype TargetScope
Target literals
The target string must exactly match one of the supported values or your flow will fail to initialize.Target names
Android and iOS target names follow the pattern<Platform> - <Model> (<Version> | <Qualifier>). The qualifier is optional.
- Model — a device model, such as
Google Pixel 9oriPhone 15.Any Phone,Any Tablet,Any iPhoneandAny iPadaccept any model of that kind. - Version — the OS marketing version, such as
Android 16oriOS 26.Latestpoints to a version that QA Wolf chooses and moves forward over time. Flows that useLatestfollow it with no edit. Emulator— the flow runs on an Android emulator. An Android target without it runs on a real phone. iOS targets always run on real devices.AllowlistedandPrivate— the flow runs on allowlisted or private iOS devices. See iOS Device Pools for when to use them and how to set them up. For dedicated Android phones, see Dedicated phones.Apple ID— the flow runs on an iOS device that is signed in to an Apple ID.
Renamed and retired targets
In October 2026, QA Wolf renamed its Android and iOS targets to follow the pattern above. A flow that uses an old name keeps working and runs on the same devices. The editor suggests only the new names.
QA Wolf no longer runs flows on iOS 17. A run of a flow that uses a retired name fails, and the error names the replacement.
platform.target
platform.target is a getter on a frozen object. Every access reads the currently configured target.
configureTarget(...).
configureTarget(...)
Use this to set the active target in local execution or tests.
getCurrentScope()
Returns the current configured target scope, or undefined when no target has been configured yet.
Example:
resetTarget()
Clears the configured target scope.
Use this in tests to avoid leaking target state across cases.
Example:
FailWithoutRetryError
This is a dedicated error class whose message is "failWithoutRetry".
Use it when flow execution should fail immediately rather than being treated as retryable by the surrounding runtime.
Example: