test-and-fix-workflow

Automate code formatting, type-checking, linting, and unit tests in Node.js projects.

18|8|Updated May 31, 2023
One-click install
npx skills add https://github.com/jpmorgan-payments/embedded-finance --skill test-and-fix-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-and-fix-workflow
Source: https://github.com/jpmorgan-payments/embedded-finance/tree/main/.github/skills/test-and-fix-workflow
Command: npx skills add https://github.com/jpmorgan-payments/embedded-finance --skill test-and-fix-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured and systematic approach to running tests, analyzing failures, and fixing code quality issues, ensuring a robust and reliable codebase.

Core Features & Use Cases

  • Automated Code Quality Checks: Runs formatting, linting, and type-checking.
  • Systematic Failure Analysis: Categorizes errors for efficient debugging.
  • Prioritized Fixing Strategy: Guides users on the order to address issues.
  • Use Case: When a pull request fails its CI checks due to test failures or linting errors, this Skill can be invoked to automatically format the code, run the tests, identify the root cause of failures, and suggest or apply fixes.

Quick Start

Use the test-and-fix-workflow skill to format, lint, and run all tests in the embedded-components directory.

Frequently Asked Questions about test-and-fix-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix TypeScript and linting errors when my Node.js CI pipeline fails?

To fix TypeScript and linting errors in a Node.js CI pipeline, you can automate the execution of code quality checks and test suites to format code, run type-checking, and analyze failures for systematic resolution.

What is the best way to systematically debug failing unit tests in a Node.js project?

The best way to systematically debug failing unit tests is to run the test suite, categorize the errors for efficient debugging, and apply a prioritized fixing strategy. This ensures common test assertion or timeout errors are resolved in a structured order.

Can I automate code formatting and type-checking before running unit tests?

Yes, you can automate code formatting and type-checking before running unit tests. A systematic code quality workflow runs formatting, linting, and type-checking sequentially, then executes the test suite to identify and analyze any resulting failures.

Does this workflow approach work for resolving pull request CI/CD check failures?

Yes, this workflow approach works for resolving pull request CI/CD check failures. It automatically formats code, runs tests, identifies the root cause of failures, and suggests or applies fixes to ensure the codebase passes CI checks.

How do I prioritize which test failures or linting errors to fix first?

To prioritize which test failures or linting errors to fix first, use a systematic failure analysis process that categorizes errors. This guides the fixing order, allowing you to address root causes systematically rather than resolving issues randomly.