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 { stubSfCommandUx } from '@salesforce/sf-plugins-core';let stubSfCommandUxStubs: ReturnType<typeof stubSfCommandUx>;// inside your beforeEach, $$ is a SinonSandboxcmdStubs = stubSfCommandUx($$.SANDBOX);// inside some testexpect(cmdStubs.warn.args.flat()).to.deep.include(`foo`); Copy
import { stubSfCommandUx } from '@salesforce/sf-plugins-core';let stubSfCommandUxStubs: ReturnType<typeof stubSfCommandUx>;// inside your beforeEach, $$ is a SinonSandboxcmdStubs = stubSfCommandUx($$.SANDBOX);// inside some testexpect(cmdStubs.warn.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