Files
claude-hub/test/unit/__mocks__/child_process.js
Jonathan Flatt 9cac28bdff test: add more mocks and fix unit tests
- Add mock for secureCredentials
- Add mock for logger
- Add mock for child_process
- Fix claudeService.test.js to use proper mocks
- Ensure all mocks use clearly fake test credentials
2025-05-28 17:36:26 -05:00

10 lines
185 B
JavaScript

/**
* Mock child_process for testing
*/
module.exports = {
execFileSync: jest.fn().mockReturnValue('mocked output'),
execFile: jest.fn(),
exec: jest.fn(),
spawn: jest.fn()
};