Predicate: is the account in a non-production mode that admits test-only surfaces (comply controller, force_, simulate_)?
Returns true for mode === 'sandbox' | 'mock' (or legacy sandbox: true); false for mode === 'live' or any account shape that doesn't carry the field.
true
mode === 'sandbox' | 'mock'
sandbox: true
false
mode === 'live'
Predicate: is the account in a non-production mode that admits test-only surfaces (comply controller, force_, simulate_)?
Returns
trueformode === 'sandbox' | 'mock'(or legacysandbox: true);falseformode === 'live'or any account shape that doesn't carry the field.