Fix linting errors in integration test

Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-11 15:29:57 +00:00
parent 1ff542ed45
commit edd1a4b063

View File

@@ -11,8 +11,9 @@ describe('Group Persistence Integration Tests', () => {
const testSettingsPath = path.join(__dirname, '..', 'fixtures', 'test_mcp_settings.json');
let originalGetConfigFilePath: any;
beforeAll(() => {
beforeAll(async () => {
// Mock getConfigFilePath to use our test settings file
// eslint-disable-next-line @typescript-eslint/no-var-requires
const pathModule = require('../../src/utils/path.js');
originalGetConfigFilePath = pathModule.getConfigFilePath;
pathModule.getConfigFilePath = (filename: string) => {
@@ -50,6 +51,7 @@ describe('Group Persistence Integration Tests', () => {
afterAll(() => {
// Restore original function
if (originalGetConfigFilePath) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const pathModule = require('../../src/utils/path.js');
pathModule.getConfigFilePath = originalGetConfigFilePath;
}