fast-check
fast-check.dev
- Free plan
- Open source
- Linux
- Web
- API
- Self-hosted
What fast-check is
fast-check is a free, open-source property-based testing library for JavaScript and TypeScript. It generates inputs, checks specified behavior across many cases, and reduces failing inputs to smaller counterexamples that can help diagnose a problem. Tests combine arbitraries to create values, properties to describe expected behavior, runners to execute checks, and plugins to extend runners. The library works with test runners including Jest, Mocha, Vitest, Ava, Bun, Deno, and the Node.js test runner. Seeds, generated value sizes, time limits, and reporting can be configured globally or for individual assertions. fast-check supports stateful testing and reproducible failures; its project also describes fuzzing and generative testing for finding issues such as race conditions and prototype poisoning. Official integrations include AVA, Jest, and Vitest, and the ecosystem lists connectors for Zod and io-ts. Version 5.x requires Node.js 22.12.0 or later and ECMAScript 2025; TypeScript 5.8 or later is optional. The project is released under the MIT license.
Who it suits
fast-check suits JavaScript and TypeScript developers who want to check behavior over generated inputs rather than only hand-picked examples. It can fit projects using a range of test runners.
Good to know, and what to watch
- Shrinks failures to smaller counterexamples.
- Supports reproducible failures and stateful testing.
- Works with several test runners.
- MIT-licensed and free to use.
- Version 5.x requires Node.js 22.12.0 or later.
- Version 5.x requires ECMAScript 2025.
- No specific maintenance guarantees are given for non-official packages.
Plans
Every plan and pricefast-check
Open source
Getting started
- Open https://fast-check.dev/.
- Use fast-check with JavaScript or TypeScript.
- Check that your environment meets the version 5.x requirements: Node.js 22.12.0 or later and ECMAScript 2025.
- Choose a supported test runner such as Jest, Mocha, or Vitest.
- Build checks from arbitraries, properties, runners, and, if needed, plugins.
The verdict
fast-check offers a configurable way to exercise properties across generated cases and inspect reduced failures. Check its version 5.x runtime requirements and the maintenance status of any non-official ecosystem packages you rely on.
Questions people ask
How much does fast-check cost?
The listed fast-check plan costs nothing. It is open source under the MIT license.
Which languages does it support?
fast-check supports JavaScript and TypeScript.
Which test runners can I use?
It supports Jest, Mocha, Vitest, Ava, Bun, Deno, and the Node.js test runner.
Does fast-check shrink failing cases?
Yes. It reduces a failing input to a smaller counterexample and reports information to help diagnose the failure.
What does fast-check 5.x require?
It requires Node.js 22.12.0 or later and ECMAScript 2025. TypeScript 5.8 or later is optional.
Is fast-check open source?
Yes. The public project is released under the MIT license.
What the maker publishes
- Additional testing
- The project describes fuzzing and generative testing for finding issues including race conditions and prototype poisoning. source
- API surface
- The API reference documents classes such as Arbitrary, Random, Stream and Value, plus enumerations, interfaces, variables and functions. source
- Arbitraries
- Arbitraries generate values and include shrinkers that reduce failures to readable counterexamples. source
- Bug discovery
- The project says generated testing can find edge cases, complex input combinations, race conditions, prototype poisoning and zero-days. source
- Community activity
- Snyk describes the project as actively maintained, with a README, contributing guide, code of conduct, funding and 80 contributors. source
- Compatibility
- Version 4 requires Node.js 12.17.0 or newer, ES2020 support and TypeScript 5.0 or newer when TypeScript is used. source
- Configuration
- Users can configure runs, seeds, generated value sizes, time limits, and result reporting globally or per assertion. source
- Creator
- The Developers' Bakery identifies Nicolas Dubien as fast-check's creator. source
- Dependency footprint
- The same index reports one direct dependency, pure-rand, and an unpacked npm size of about 1.5 MB. source
- Documentation depth
- Documentation includes runnable tutorials, quick start material, reference pages, configuration, advanced topics, migration guides and API reference. source
- Ecosystem caveat
- The maintainers state that stability and maintenance are guaranteed for official packages but not for non-official ecosystem packages. source
- Ecosystem limitations
- The ecosystem page says it can provide stability and maintenance details for official packages, but no specific guarantees for non-official packages. source
- Failure diagnosis
- When a property fails, fast-check shrinks the input to a smaller counterexample and reports information that helps diagnose the failure. source
- Independent assessment
- DEV.co rates maintenance, documentation, licence clarity, deployment complexity and overall fit positively, with high confidence. source
- Integration connectors
- Official connectors are provided for AVA, Jest and Vitest, with additional third-party bridges listed for other tools. source
- Integrations
- The ecosystem lists official integrations for AVA, Jest, and Vitest, along with connectors for libraries such as Zod and io-ts. source
- Latest notable release
- GitHub's release page lists v4.10.2 with an interrupt-plugin fix and v4.10.0 with a new plugin API, global plugin configuration and timeout plugin. source
- Licence
- fast-check is released under the MIT licence. source
- Limit: language scope
- DEV.co notes that fast-check targets JavaScript and TypeScript, so Python, Go, Java and Rust projects need other libraries. source
- Limit: learning curve
- DEV.co warns that projects with minimal testing needs may not justify the learning curve and setup overhead of property-based testing. source
- Limit: security claims
- DEV.co says fast-check makes no security guarantees and recommends checking generated-input distributions for security-critical fuzzing. source
- Maker location
- The creator's GitHub profile lists the location as Remote, France. source
- Model-based testing
- The API includes modelRun, asyncModelRun and scheduledModelRun functions for model and real-system testing. source
- Module formats
- An independent package index reports ESM and CommonJS support with bundled TypeScript declarations. source
Checked against the maker's pages on 15 Oct 2026.