mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 13:33:11 +00:00
fix: resolve TypeScript lint error in workflow validator test
- Fixed mock function type issue in workflow-validator-comprehensive.test.ts - Changed mockImplementation pattern to direct vi.fn assignment - All lint and typecheck tests now pass
This commit is contained in:
@@ -523,7 +523,7 @@ describe('WorkflowValidator - Comprehensive Tests', () => {
|
||||
} as any;
|
||||
|
||||
// Mock the normalized node lookup
|
||||
mockNodeRepository.getNode.mockImplementation((type: string) => {
|
||||
(mockNodeRepository.getNode as any) = vi.fn((type: string) => {
|
||||
if (type === 'nodes-base.webhook') {
|
||||
return {
|
||||
nodeType: 'nodes-base.webhook',
|
||||
|
||||
Reference in New Issue
Block a user