Skip to content

Commit

Permalink
fix: strip ansi from commands output
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jun 3, 2024
1 parent 8469ed9 commit b22893b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/cli/tarballs/smoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { Duration, parseJson, ThrottledPromiseAll } from '@salesforce/kit';
import { Interfaces } from '@oclif/core';
import stripAnsi from 'strip-ansi';
import { PackageJson } from '../../../package.js';
import { testJITInstall } from '../../../jit.js';

Expand Down Expand Up @@ -132,7 +133,7 @@ export default class SmokeTest extends SfCommand<void> {
this.styledHeader(command);
this.log(stdout);
}
return stdout;
return stripAnsi(stdout);
} catch (e) {
const err = e as Error;
throw new SfError(`Failed: ${command}.\n ${err.message}`, 'SMOKE_TEST_FAILURE', [], err);
Expand Down

0 comments on commit b22893b

Please sign in to comment.