Stub methods on the Ux class. Even if you plan to make no assertions, this will silence the output to keep your test results clean
import { stubUx } from '@salesforce/sf-plugins-core';let stubUxStubs: ReturnType<typeof stubUx>;// inside your beforeEach, $$ is a SinonSandboxstubUxStubs = stubUx($$.SANDBOX);// inside some testexpect(stubUxStubs.log.args.flat()).to.deep.include(`foo`); Copy
import { stubUx } from '@salesforce/sf-plugins-core';let stubUxStubs: ReturnType<typeof stubUx>;// inside your beforeEach, $$ is a SinonSandboxstubUxStubs = stubUx($$.SANDBOX);// inside some testexpect(stubUxStubs.log.args.flat()).to.deep.include(`foo`);
Stub methods on the Ux class. Even if you plan to make no assertions, this will silence the output to keep your test results clean