Add comprehensive cluster documentation and configuration examples

Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-26 14:13:40 +00:00
committed by samanhappy
parent f4bac3adc0
commit 1f535c3d7f
4 changed files with 1473 additions and 3 deletions

View File

@@ -5,7 +5,6 @@
import {
isClusterEnabled,
getClusterMode,
getCurrentNodeId,
registerNode,
updateNodeHeartbeat,
getActiveNodes,
@@ -18,15 +17,16 @@ import {
shutdownClusterService,
} from '../../src/services/clusterService';
import { ClusterNode } from '../../src/types/index';
import * as configModule from '../../src/config/index.js';
// Mock the config module
jest.mock('../../src/config/index.js', () => ({
loadSettings: jest.fn(),
}));
const { loadSettings } = require('../../src/config/index.js');
describe('Cluster Service', () => {
const loadSettings = configModule.loadSettings as jest.MockedFunction<typeof configModule.loadSettings>;
beforeEach(() => {
jest.clearAllMocks();
});