nw-pbt-typescript

Automate property-based testing in TypeScript/JavaScript projects with fast-check.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/StudentCristian/nWave-github --skill nw-pbt-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nw-pbt-typescript
Source: https://github.com/StudentCristian/nWave-github/tree/main/.github/skills/nw-pbt-typescript
Command: npx skills add https://github.com/StudentCristian/nWave-github --skill nw-pbt-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Property-based testing for TypeScript/JavaScript applications using the fast-check library, enabling generation of rich input scenarios to validate invariants and guard against edge cases without writing extensive test inputs.

Core Features & Use Cases

  • Generates a wide range of inputs (numbers, strings, arrays, objects) with fast-check primitives and combinators.
  • Supports stateful/model-based testing and race-condition checks to verify complex interactions.
  • Helps uncover edge cases and invariants in algorithms, data structures, and business logic across frontend and backend apps.
  • Provides deterministic failure reproduction via seeds and shrink paths.

Quick Start

Run a sample property test that asserts an invariant on an input generator using fc.assert.

Frequently Asked Questions about nw-pbt-typescript

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

FAQPage Schema
How do I use property-based testing to find edge cases in TypeScript algorithms?

You can use property-based testing with fast-check to generate diverse input scenarios and validate invariants, automatically uncovering edge cases in algorithms and data structures without writing extensive manual test inputs.

Can I test stateful interactions and race conditions with fast-check in JavaScript?

Yes, fast-check supports stateful model-based testing and race-condition checks to verify complex interactions, allowing you to test stateful systems and uncover concurrency issues in your JavaScript applications.

How do I reproduce a property-based test failure deterministically?

Property-based testing with fast-check provides deterministic failure reproduction via seeds and shrinking paths, allowing you to isolate the exact minimal input that caused an invariant to fail.

What is the best way to generate complex test inputs for TypeScript data structures?

Using fast-check primitives and combinators is an effective way to generate complex inputs like arrays and objects, enabling thorough validation of data structure correctness and business logic invariants.

Do I need TypeScript support to use fast-check for property-based testing?

Yes, this property-based testing approach requires TypeScript support and the fast-check library installed in your project to generate inputs and run invariant assertions.