code-transmute
Version:
Convert any codebase into any language — without changing its brain.
22 lines • 666 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
// Jest setup file
const globals_1 = require("@jest/globals");
// Mock console methods to reduce noise in tests
global.console = {
...console,
log: globals_1.jest.fn(),
debug: globals_1.jest.fn(),
info: globals_1.jest.fn(),
warn: globals_1.jest.fn(),
error: globals_1.jest.fn(),
};
// Mock process.exit to prevent tests from exiting
const originalExit = process.exit;
process.exit = globals_1.jest.fn();
// Restore original exit after each test
afterEach(() => {
process.exit.mockRestore();
process.exit = originalExit;
});
//# sourceMappingURL=setup.js.map
;