Stub the SfCommand spinner. Even if you plan to make no assertions, this will silence the output to keep your test results clean
import { stubSpinner } from '@salesforce/sf-plugins-core';let spinnerStubs: ReturnType<typeof stubSpinner>;// inside your beforeEach, $$ is a SinonSandboxspinnerStubs = stubSpinner($$.SANDBOX);// inside some testexpect(spinnerStubs.callCount).equals(1); Copy
import { stubSpinner } from '@salesforce/sf-plugins-core';let spinnerStubs: ReturnType<typeof stubSpinner>;// inside your beforeEach, $$ is a SinonSandboxspinnerStubs = stubSpinner($$.SANDBOX);// inside some testexpect(spinnerStubs.callCount).equals(1);
Stub the SfCommand spinner. Even if you plan to make no assertions, this will silence the output to keep your test results clean