mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user