Agent SkillsAgent Skills
majiayu000

testing-n8n-testing

@majiayu000/testing-n8n-testing
majiayu000
180
35 forks
Updated 4/7/2026
View on GitHub

Testing N8n Testing: Test n8n nodes using Jest, nock for HTTP mocking, and local testing workflows with npm link. Use this skill when writing test files in __tests__ folders, mocking HTTP requests with nock, creating mock IExecuteFunctions contexts, testing helper functions, setting up golden file tests, running the linter before publishing, or locally testing nodes in the n8n UI. Apply when organizing test files, mocking external APIs, validating node execution output, or following the pre-publish checklist.

Installation

$npx agent-skills-cli install @majiayu000/testing-n8n-testing
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathskills/testing/testing-n8n-testing/SKILL.md
Branchmain
Scoped Name@majiayu000/testing-n8n-testing

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


name: Testing N8n Testing description: Test n8n nodes using Jest, nock for HTTP mocking, and local testing workflows with npm link. Use this skill when writing test files in tests folders, mocking HTTP requests with nock, creating mock IExecuteFunctions contexts, testing helper functions, setting up golden file tests, running the linter before publishing, or locally testing nodes in the n8n UI. Apply when organizing test files, mocking external APIs, validating node execution output, or following the pre-publish checklist.

When to use this skill:

  • When creating test files in tests/ folders
  • When writing Jest test suites for n8n nodes
  • When mocking HTTP requests with nock (beforeAll, afterEach, afterAll patterns)
  • When testing helper functions for data formatting
  • When creating mock IExecuteFunctions for node execution tests
  • When verifying node output against expected results
  • When testing API error handling (401, 404, 429 responses)
  • When setting up golden file tests for complex output
  • When linking nodes locally for manual testing (npm link)
  • When using n8n dev mode with hot reload
  • When running npm run lint before publishing
  • When following the pre-publish checklist (tests pass, build succeeds, manual testing)
  • When testing credentials save and validation in n8n UI

Testing N8n Testing

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle testing n8n testing.

Instructions

For details, refer to the information provided in this file: testing n8n testing

More by majiayu000

View all
deploying-postgres-k8s
180

Deploys PostgreSQL on Kubernetes using the CloudNativePG operator with automated failover. Use when setting up PostgreSQL for production workloads, high availability, or local K8s development. Covers operator installation, cluster creation, connection secrets, and backup configuration. NOT when using managed Postgres (Neon, RDS, Cloud SQL) or simple Docker containers.

energize-denver-proposals
180

Use when creating or updating Energize Denver compliance proposals including benchmarking, energy audits, compliance pathways, and performance target analysis. Handles proposal generation from template, cost estimation based on building size and service type, timeline planning, and compliance verification against Denver Article XIV requirements for commercial and multifamily buildings (project)

css-styling-standards
180

CSS styling standards and best practices for responsive, accessible, and maintainable web interfaces with special considerations for multilingual content and Chuukese text display. Use when creating or modifying stylesheets and CSS components.

better-chatbot-patterns
180

This skill provides reusable implementation patterns extracted from the better-chatbot project for custom AI chatbot deployments. Use this skill when building AI chatbots with server action validators, tool abstraction systems, workflow execution, or multi-AI provider integration in your own projects (not contributing to better-chatbot itself). Use when: building AI chatbot features, implementing server action validators, creating tool abstraction layers, setting up multi-AI provider support, building workflow execution systems, adapting better-chatbot patterns to custom projects Keywords: AI chatbot patterns, server action validators, tool abstraction, multi-AI providers, workflow execution, MCP integration, validated actions, tool type checking, Vercel AI SDK patterns, chatbot architecture