cashflow-testing

Run Vitest unit tests for the Cashflow Simulator project with coverage workflows.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/macedot/cashflow-js --skill cashflow-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cashflow-testing
Source: https://github.com/macedot/cashflow-js/tree/main/.skills/cashflow-testing
Command: npx skills add https://github.com/macedot/cashflow-js --skill cashflow-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers verify and validate the Cashflow Simulator project by providing a structured approach to run tests, understand test coverage, and extend the test suite.

Core Features & Use Cases

  • Documents the Vitest-based test structure and how to execute unit tests.
  • Describes running tests in standard and watch modes, plus generating coverage reports.
  • Explains validation scenarios for date parsing, frequency handling, input validation, and edge cases.

Quick Start

Run npm install and then npm test to execute the test suite for the Cashflow Simulator project.

Frequently Asked Questions about cashflow-testing

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

FAQPage Schema
How do I run unit tests for the Cashflow Simulator using Vitest?

Run unit tests for the Cashflow Simulator by executing `npm test` after installing dependencies. This command triggers Vitest to process the test suite located in `src/cashflow.test.js`, validating core logic and edge cases.

What testing scenarios does the Cashflow Simulator test suite cover?

The test suite covers validation scenarios for date parsing, frequency handling, input validation, and edge cases. It verifies core logic by structuring tests specifically for the Cashflow Simulator project.

Can I run Vitest in watch mode and generate code coverage reports?

Yes, you can run Vitest in watch mode using `npm run test:watch` and generate code coverage reports using `npm run test:coverage`. These commands execute the configured coverage workflows for the project.

Do I need Node and Vitest to execute the Cashflow Simulator test suite?

Yes, Vitest and Node are the required tooling specified to execute the test suite. You must configure the environment with these dependencies to run the unit tests and meet the coverage thresholds.

What is the best way to structure unit tests for the Cashflow Simulator?

Structure unit tests within the `src/cashflow.test.js` file using the Vitest configuration. This organization standardizes test execution and ensures validation scenarios for date parsing and frequency handling are properly grouped.