Skip to content

Commit ce475b6

Browse files
committed
fix: Resolve ESLint warnings in test files
1 parent 89e3f38 commit ce475b6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/__tests__/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { parseServerConfig, getConfigSource } from '../config.js';
44
describe('Configuration Parsing', () => {
55
// Store original process.argv and env
66
let originalArgv: string[];
7-
let originalEnv: NodeJS.ProcessEnv;
7+
let originalEnv: typeof process.env;
88

99
beforeEach(() => {
1010
originalArgv = [...process.argv];

src/__tests__/read-only-mode.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Tests the enforcement of read-only mode when calling create_deployment
44
*/
55

6+
/* eslint-disable @typescript-eslint/no-explicit-any, no-unused-vars */
7+
68
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
79
import { createMCPServer } from '../mcp-server.js';
810
import type { ServerConfig } from '../config.js';
@@ -23,7 +25,7 @@ vi.mock('../api-client.js', () => {
2325
getDeploymentLog = vi.fn().mockResolvedValue('');
2426
validateCredentials = vi.fn().mockResolvedValue(undefined);
2527

26-
constructor(_config: any) {
28+
constructor(_config: { username: string; password: string; account: string }) {
2729
// Mock constructor - config param prefixed with _ to indicate intentionally unused
2830
}
2931
}

0 commit comments

Comments
 (0)