UNPKG

n8n-nodes-innotes

Version:

N8N node for InNotes CRM API integration

41 lines (39 loc) 1.09 kB
"use strict"; /** * Author: marco * Last updated: 2025-05-30 */ // Global test setup beforeAll(() => { // Setup environment variables for testing if (!process.env.NODE_ENV) { Object.defineProperty(process.env, 'NODE_ENV', { value: 'test', writable: true, }); } }); afterAll(() => { // Cleanup after all tests }); // Mock N8N core modules jest.mock('n8n-workflow', () => ({ NodeApiError: class NodeApiError extends Error { constructor(_node, error, _options) { var _a; super((_a = error.message) !== null && _a !== void 0 ? _a : 'API Error'); this.name = 'NodeApiError'; } }, NodeOperationError: class NodeOperationError extends Error { constructor(_node, error, _options) { var _a; super((_a = error.message) !== null && _a !== void 0 ? _a : 'Operation Error'); this.name = 'NodeOperationError'; } }, })); jest.mock('n8n-core', () => ({ // Add mock implementations as needed })); //# sourceMappingURL=setup.js.map