fix: resolve TypeScript errors in test files

- Fixed MCP_MODE type assignment in console-manager.test.ts
- Fixed prototype pollution test TypeScript errors in fixed-collection-validator.test.ts
- All linting checks now pass

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-08-02 10:27:45 +02:00
parent a2be2b36d5
commit 296bf76e68
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ describe('ConsoleManager', () => {
// Clean up after each test
manager.restore();
if (originalEnv !== undefined) {
process.env.MCP_MODE = originalEnv;
process.env.MCP_MODE = originalEnv as "test" | "http" | "stdio" | undefined;
} else {
delete process.env.MCP_MODE;
}
@@ -250,7 +250,7 @@ describe('ConsoleManager', () => {
});
test('should handle empty MCP_MODE', () => {
process.env.MCP_MODE = '';
process.env.MCP_MODE = '' as any;
const originalLog = console.log;