test

Automates running ForemanOS npm test suites, filtered files, or individual tests.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/mgoodman60/foremanos --skill test-mgoodman60
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/mgoodman60/foremanos/tree/main/.claude/skills/test
Command: npx skills add https://github.com/mgoodman60/foremanos --skill test-mgoodman60

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies and speeds up the process of running tests for ForemanOS projects, reducing manual setup and repetitive steps.

Core Features & Use Cases

  • Selective Testing: Run all tests or target specific suites, files, or patterns.
  • Seamless CLI: Works with npm test and common test runners to fit existing workflows.
  • Use Case: After a code change, run npm test -- --run to verify a focused set of tests, then review results.

Quick Start

Use the test skill to run all tests or filter to a specific suite, e.g., npm test -- --run or npm test -- tests/lib/rag.test.ts --run.

Frequently Asked Questions about test

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

FAQPage Schema
How do I run specific test files in ForemanOS using npm test?

Running filtered ForemanOS tests uses npm test with path arguments like npm test -- __tests__/lib/rag.test.ts --run. This targets specific test files or directories instead of executing the entire suite.

What is the best way to automate running a subset of Jest tests in Node?

Automating subset Jest test runs in Node is handled by passing filter arguments to npm test. You can target specific files or patterns using the --run flag to verify focused code changes quickly without launching the full suite.

Do I need Node.js and npm installed to execute ForemanOS test suites?

Yes, Node.js and npm or yarn are required to execute ForemanOS test suites. A standard development environment with these dependencies is necessary to run the npm test commands and automate the testing workflow.

Can I use yarn instead of npm to run ForemanOS tests?

Yes, you can use yarn instead of npm to run ForemanOS tests. The skill supports standard development environments using either npm or yarn to execute the test commands and apply filters to your test suites.

Why does my npm test command run the whole suite instead of just the filtered tests?

Your npm test command runs the whole suite when the filter arguments are not passed correctly. Ensure you append the specific file path and the --run flag, like npm test -- __tests__/file.test.ts --run, to target only those tests.