Skip to content

Commit

Permalink
strip ansi
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-chernicki committed Dec 19, 2023
1 parent fee8201 commit a66792d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/commonality/test/integration/studio.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import os from 'node:os';
import { afterEach } from 'node:test';
import { Writable } from 'node:stream';
import getPort from 'get-port';
import stripAnsi from 'strip-ansi';

const binPath = path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
Expand Down Expand Up @@ -52,7 +53,7 @@ describe('studio', () => {
const stdoutMock = new Writable({
write(chunk, encoding, callback) {
console.log({ chunk: chunk.toString() });
output += chunk.toString();
output += stripAnsi(chunk.toString());
callback();
},
});
Expand Down

0 comments on commit a66792d

Please sign in to comment.