package-detector
Version:
A fast and comprehensive Node.js CLI tool to analyze your project's package.json and detect various package-related issues
15 lines (12 loc) • 316 B
text/typescript
// Jest setup file
import { jest } from '@jest/globals';
// Mock console.log to capture output in tests
const originalConsoleLog = console.log;
beforeEach(() => {
console.log = jest.fn();
});
afterEach(() => {
console.log = originalConsoleLog;
});
// Global test timeout
jest.setTimeout(10000);