pgit-cli
Version:
Private file tracking with dual git repositories
25 lines • 968 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
// Global test setup
require("jest");
// Mock console methods to keep test output clean
beforeEach(() => {
// Suppress console output during tests unless explicitly needed
jest.spyOn(console, 'log').mockImplementation(() => { });
jest.spyOn(console, 'warn').mockImplementation(() => { });
jest.spyOn(console, 'error').mockImplementation(() => { });
jest.spyOn(console, 'info').mockImplementation(() => { });
});
afterEach(() => {
// Restore console methods
jest.restoreAllMocks();
});
// Global test timeout
jest.setTimeout(30000);
// Mock process.exit to prevent tests from actually exiting
jest.spyOn(process, 'exit').mockImplementation((code) => {
throw new Error(`Process.exit called with code: ${code}`);
});
// Mock process.cwd to return a consistent value
jest.spyOn(process, 'cwd').mockReturnValue('/test/workspace');
//# sourceMappingURL=setup.js.map
;