Skip to content

Commit

Permalink
hide output from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Dec 15, 2022
1 parent 334174c commit 7c4fcb0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/@aws-cdk/integ-runner/test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ import * as path from 'path';
import { main, parseCliArgs } from '../lib/cli';

let stdoutMock: jest.SpyInstance;
let stderrMock: jest.SpyInstance;
beforeEach(() => {
stdoutMock = jest.spyOn(process.stdout, 'write').mockImplementation(() => { return true; });
stderrMock = jest.spyOn(process.stderr, 'write').mockImplementation(() => { return true; });
});
afterEach(() => {
stdoutMock.mockReset();
stderrMock.mockReset();
});
afterAll(() => {
stdoutMock.mockRestore();
stderrMock.mockRestore();
});

describe('Test discovery', () => {
Expand Down

0 comments on commit 7c4fcb0

Please sign in to comment.