feat(Email Trigger (IMAP) Node): Option to disable last message id tracking (#17964)

This commit is contained in:
Michael Kret
2025-08-07 14:59:34 +03:00
committed by GitHub
parent c2fe529d2b
commit 25379fe522
2 changed files with 26 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import { mock } from 'jest-mock-extended';
import { type INodeTypeBaseDescription, type ITriggerFunctions } from 'n8n-workflow';
import type { INode, INodeTypeBaseDescription, ITriggerFunctions } from 'n8n-workflow';
import { type ICredentialsDataImap } from '@credentials/Imap.credentials';
@@ -42,6 +42,7 @@ describe('Test IMap V2', () => {
};
triggerFunctions.getCredentials.calledWith('imap').mockResolvedValue(credentials);
triggerFunctions.getNode.mockReturnValue(mock<INode>({ typeVersion: 2.1 }));
triggerFunctions.logger.debug = jest.fn();
triggerFunctions.getNodeParameter.calledWith('options').mockReturnValue({
name: 'Mark as Read',