# fast-check

> Property-based testing for JavaScript and TypeScript

Source: https://talira.ai/catalog/fast-check-4wmky7yh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / testing / property based](https://talira.ai/categories/developer-tools/testing/property-based), [developer tools / testing](https://talira.ai/categories/developer-tools/testing)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Nicolas Dubien](https://talira.ai/orgs/nicolas-dubien.md)

fast-check is a property-based testing library for JavaScript and TypeScript, in the style of QuickCheck. Instead of hand-picked examples, a test states a property that should always hold, and fast-check generates hundreds of inputs from arbitraries, runs the assertion over them and shrinks any failure to the smallest input that still reproduces it, with a seed to replay it. It works inside any test runner, with companion packages for [Jest](https://talira.ai/catalog/jest-wp596gce.md), [Vitest](https://talira.ai/catalog/vitest-eyy494yh.md) and AVA, and supports model-based testing: random sequences of commands run against the system and a simplified model of it, to check that it follows its state machine, as well as race condition detection and prototype poisoning checks. It's under the MIT licence.

## Links

- Website: https://fast-check.dev/
- GitHub: https://github.com/dubzzz/fast-check
- Docs: https://fast-check.dev/docs/introduction/

## Problems it solves

- model-based testing that checks my app follows its state machine with random command sequences
- generate random inputs for my TypeScript unit tests and shrink failures to the smallest case
- find edge-case bugs my hand-written Jest examples miss
- fuzz a JavaScript parser to find inputs that crash it
- catch race conditions in async JavaScript code by trying many orderings

## Features

- property-based tests with generated inputs from built-in arbitraries
- shrinking of failing cases to a minimal counterexample
- replay of a failure from its seed and path
- model-based testing with commands run against a model
- race condition detection with scheduled async tasks
- prototype poisoning detection
- works in any test runner; Jest, Vitest and AVA integrations
- running predicates in dedicated workers

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 1.00, adoption 0.74, momentum 0.51, community 0.77, backing 0.30, extensibility 0.00.

- last commit today
- 378 commits in the last 90 days
- latest release v4.11.0 2 days ago
- 5.3k GitHub stars
- 83 contributors
- accepts sponsorship (Github, Open Collective)
- backed by Nicolas Dubien

## Sources

[^1]: https://github.com/dubzzz/fast-check (checked 24 Nov 2026)
[^2]: https://github.com/dubzzz/fast-check/blob/main/LICENSE (checked 24 Nov 2026)
