first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,20 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Test SendGrid Node', () => {
describe('Mail', () => {
const sendgridNock = nock('https://api.sendgrid.com/v3')
.post(
'/mail/send',
(body: { reply_to_list?: [{ email: string }] }) =>
body?.reply_to_list?.[0]?.email === 'test-reply-to@n8n.io',
)
.reply(202);
afterAll(() => sendgridNock.done());
new NodeTestHarness().setupTests({
workflowFiles: ['mail.workflow.json'],
});
});
});
@@ -0,0 +1,62 @@
{
"name": "mail",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [0, 0],
"id": "0b4c0843-6007-4687-8e91-cf3b97cb0734",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"resource": "mail",
"fromEmail": "test@n8n.io",
"fromName": "Test Sender",
"toEmail": "test@n8n.io",
"subject": "Test Subject",
"contentValue": "Test Message",
"additionalFields": {
"replyToEmail": "test-reply-to@n8n.io"
}
},
"type": "n8n-nodes-base.sendGrid",
"typeVersion": 1,
"position": [220, 0],
"id": "69ea4501-a90d-4067-b9f7-a7b7f2b79a96",
"name": "SendGrid",
"credentials": {
"sendGridApi": {
"id": "3D7B6nvmzW0SZkjG",
"name": "SendGrid account"
}
}
}
],
"pinData": {},
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "SendGrid",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "7e4ed87a-64b8-4248-b78f-e2db21f1f603",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "35e7acdc2e5caa3b0a5fca77da6cc9361ca88ba3e6f6b97ecd8a8cf35cb2ea85"
},
"id": "YdfKbNlA37FExwxC",
"tags": []
}