Skip to content

Commit

Permalink
supress logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vishvamsinh28 committed Oct 18, 2024
1 parent bfc9e6e commit 9c1ef9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/build-tools.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ describe('buildTools', () => {
const tagsPath = resolve(testDir, 'all-tags.json');
const automatedToolsPath = resolve(testDir, 'tools-automated.json');
const manualToolsPath = resolve(testDir, 'tools-manual.json');
let consoleErrorMock;

beforeAll(() => {
fs.mkdirSync(testDir, { recursive: true });
fs.writeFileSync(manualToolsPath, JSON.stringify(manualTools));
consoleErrorMock = jest.spyOn(console, 'error').mockImplementation(() => {});
});

afterAll(() => {
fs.rmSync(testDir, { recursive: true, force: true });
consoleErrorMock.mockRestore();
});

beforeEach(() => {
Expand Down

0 comments on commit 9c1ef9e

Please sign in to comment.