An object used in tests that interact with config files.
id A unique id for the test run.
The default sandbox is cleared out before each test run.
See [sinon sandbox]https://sinonjs.org/releases/v14/sandbox/.
An object of different sandboxes. Used when needing to restore parts of the system for customized testing.
A record of stubs created during instantiation.
The test logger that is used when Logger.child is used anywhere. It uses memory logging.
Used to mock http request to Salesforce.
An HttpRequest.
Optionaloptions: AnyJson
Additional options.
Gets a config stub contents by name.
The name of the config.
Optionalgroup: string
If the config supports groups.
A function used when resolving the global path. Calls globalPathResolverSync by default.
Unique id.
A function used when resolving the global path.
Unique id.
Set stubs for working in the context of a SfProject
A function used when resolving the local path. Calls localPathResolverSync by default.
Unique id.
A function used when resolving the local path.
Unique id.
A function used for resolving paths. Calls localPathRetriever and globalPathRetriever.
true if the config is global.
Optionaluid: string
user id.
A function used for resolving paths. Calls localPathRetrieverSync and globalPathRetrieverSync.
true if the config is global.
Optionaluid: string
user id.
Sets a config stub contents by name
The name of the config stub.
The actual stub contents. The Mock data.
Add beforeEach and afterEach hooks to init the stubs and restore them. This is called automatically when the class is instantiated unless the setup option is set to false.
Stub the aliases in the global aliases config file.
Stub contents in the config file.
Stub salesforce sandbox authorizations.
Stub salesforce user authorizations.
The users to stub. The key is the username of the admin user and it must be included in the users array in order to obtain the orgId key for the remaining users. The admin user is excluded from the users array.
Generate unique string.
Instantiate a @salesforce/core test context.