Mock class for Salesforce Orgs.

Example

const testOrg = new MockTestOrgData();
await $$.stubAuths(testOrg)

Constructors

Properties

accessToken: string
aliases?: string[]
authcode: string
clientId: string
clientSecret: string
configs?: string[]
devHubUsername?: string
instanceUrl: string
isDevHub?: boolean
isExpired?: boolean | "unknown"
isScratchOrg?: boolean
loginUrl: string
namespacePrefix?: string
orgId: string
password?: string
redirectUri: string
refreshToken: undefined | string
testId: string
tracksSource: undefined | boolean
userId: string
username: string

Methods

  • Add devhub username to properties.

    Parameters

    • username: string

    Returns void

  • Return mock user information based on this org.

    Returns MockUserInfo