From edd1a4b0634c0b5f0dd83c7d53f306c7f3d00d61 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:29:57 +0000 Subject: [PATCH] Fix linting errors in integration test Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com> --- tests/integration/groupPersistence.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/groupPersistence.test.ts b/tests/integration/groupPersistence.test.ts index 74aa2ad..e5685a2 100644 --- a/tests/integration/groupPersistence.test.ts +++ b/tests/integration/groupPersistence.test.ts @@ -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; }