fast-check's Avatar

fast-check

@fast-check.dev

🎲 Property-based testing for JavaScript and TypeScript compatible with Vitest, Jest and others Β· Official website at https://fast-check.dev Β· Made with β™₯️ by @nicolas.dubien.me

206
Followers
26
Following
162
Posts
04.11.2024
Joined
Posts Following

Latest posts by fast-check @fast-check.dev

Post image

πŸš€ This is it: version 8.0.0 of pure-rand is out!

πŸ“¦ Lighter bundle
πŸ›’οΈ No more barrel files
🧹 Simplified API by default

npmx.dev/package/pure...

05.03.2026 22:10 πŸ‘ 8 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0

πŸ‘‹ Welcome from @eurosky.social

05.03.2026 20:42 πŸ‘ 19 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1

Good idea πŸ’‘

I'm gonna think about it. Definitely something worth providing to ease the creation of multiple random streams.

28.02.2026 23:18 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

The next major is currently under active development and should come with several new distributions and maybe a few extra generators. But for generators we will have to carefully benchmark them one by one to keep our high throughput standard

28.02.2026 10:07 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

To date pure-rand is the fastest random generator library on npm. And it comes with plenty of built-in generators and distributions (to pull data outside of generators)

28.02.2026 10:05 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

We are currently trying to solve most of the issues that made the #faker project copy paste the code directly in their source code a few years ago

28.02.2026 10:03 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Still wondering if we should go full ESM for it. The library is being used by #Jest so we are not sure we do that given they don't support require(esm)

28.02.2026 09:53 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

🎲 We are currently making deep changes onto our internal random library called pure-rand. Expects lighter bundle on npm and faster to load at execution time within fast-check

28.02.2026 09:52 πŸ‘ 12 πŸ” 0 πŸ’¬ 1 πŸ“Œ 1
Preview
fast-check official documentation | fast-check fast-check is a Property-based Testing framework for JavaScript and TypeScript. It works with Jest, Mocha, Vitest, and others. Let's fuzz!

πŸƒβ€β™‚οΈ Currently updating all our links to point to @npmx.dev Β· PRs on their way to update our website fast-check.dev but also all the README files

26.02.2026 19:27 πŸ‘ 15 πŸ” 3 πŸ’¬ 0 πŸ“Œ 1

🀯 Still impressed to see how simple it is to move from Jest to @vitest.dev

We just moved pure-rand, one of the core packages in fast-check

23.02.2026 12:57 πŸ‘ 5 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

As a consumer of fast-check, expect:

- Less code to download from npm
- Faster to load
- Faster to type check

23.02.2026 09:17 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

⚑ We are currently moving our build chain to @rolldown.rs

It's a game changer! Our packages are building really fast now. In the past we were using raw Typescript, but it's not an ideal option to bundle a package even if it works pretty well.

23.02.2026 09:13 πŸ‘ 9 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Thanks a lot @orta.io Β· I was worried about the super powers of it. I wanted to switch to it to have it running even before I click on the 'approve run workflows' on the PR

20.02.2026 05:54 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

⁉️ Is this GitHub action workflow risky?

With pull_request alone I have to wait for having manually approved the workflows to run on the PR, pull_request_target seems to be the way to go, but I'm uncomfortable with using it 😬

Anyone to confirm it's safe?

github.com/dubzzz/fast-...

19.02.2026 23:42 πŸ‘ 1 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

πŸ”‘ We've just reworked our template for pull requests on @fast-check.dev

With the rise of vibe-coding we wanted to take into account this new trend in our checklist that must be completed before opening a PR: github.com/dubzzz/fast-...

19.02.2026 20:15 πŸ‘ 6 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Release v4.0.0 Β· nuxt/test-utils 4.0.0 is the next major release. πŸ‘€ Highlights We're releasing Nuxt Test Utils v4, with support for Vitest v4. πŸš€ Better mocking support The biggest improvement in this release is how mocking wo...

πŸ§ͺ `@nuxt/test-utils` v4 is out πŸš€

πŸ‘Ί mocking is much more reliable
⚑ works with vitest v4 + Vite's native Module Runner
βš—οΈ registerEndpoint improvements

much thanks to github.com/yamachi4416 and @adamdehaven.com ❀️

πŸ‘‰ github.com/nuxt/test-u...

let me know how it goes! πŸ™

07.02.2026 11:31 πŸ‘ 69 πŸ” 10 πŸ’¬ 1 πŸ“Œ 0

We are currently deeply reworking our JavaScript testing expert to make it able to deal with a larger variety of tests 🀞

Several new guidelines will be added to help AI agents into proofreading the test they wrote to be critical of themselves before giving you the test.

04.02.2026 23:52 πŸ‘ 7 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
npmx

Spread love πŸ’• Like us on @npmx.dev, npmx.dev/package/fast...

04.02.2026 12:39 πŸ‘ 5 πŸ” 1 πŸ’¬ 0 πŸ“Œ 1

We are now part of @npmx.dev testing tool-chain. More tests to come.

03.02.2026 09:37 πŸ‘ 19 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

Am I the only one or is Claude Code from @anthropic.com automatically setting up @fast-check.dev along @vitest.dev when asked to add tests to a project?

The prompt was:
> add test coverage to this repository, feel free to add the packages you feel relevant to achieve that task

No skill added

02.02.2026 11:22 πŸ‘ 2 πŸ” 1 πŸ’¬ 2 πŸ“Œ 0

No need to open an issue to contribute to this skill. Just open a PR and we will do the triage. Si suggestions and edits welcomed β™₯️

01.02.2026 10:15 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

πŸ‘‰ Our testing expert is there: skills.sh/dubzzz/fast-...

We will restrict the scope to non-e2e but plan to cover testing-library and playwright.

πŸ™ Help welcomed β™₯️
Share the word and feel free to contribute, the more contributors the better the rules

01.02.2026 10:13 πŸ‘ 5 πŸ” 2 πŸ’¬ 1 πŸ“Œ 1

Thanks a lot, we're gonna read through it to extend our expert

01.02.2026 09:21 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Try it with:

npx skills add github.com/dubzzz/fast-... --skill javascript-testing-expert

01.02.2026 01:20 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

πŸš€ Here is a very first version of our "JavaScript testing expert". There are still a LOT of missing guidelines.

We still want to cover basics of UI testing with testing-library and @vitest.dev with @playwright.dev but soon...

First let's play with it 🀞

01.02.2026 01:19 πŸ‘ 4 πŸ” 0 πŸ’¬ 2 πŸ“Œ 1

πŸ§™β€β™‚οΈ We are currently writing down some AI skills for testing in general and some for fast-check itself

Hope it could lead to better tests and less bugs πŸ‘Ύ

31.01.2026 16:29 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 2

🀫 We’re cleaning up our packages and going ESM-only.
Reworking the entire build pipeline, moving from pure tsc to Rolldown.

😍 @rolldown.rs is so easy to connect. Amazing how quickly you can get what you need with just a few lines.

30.01.2026 08:50 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

We’re excited to welcome Mercedes-Benz as a new sponsor of fast-check! πŸš€

26.01.2026 20:09 πŸ‘ 6 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

copy and paste the bunny and then put something else in his hand

(\_/)
(Β°-Β°)
/>πŸ’>

23.01.2026 07:54 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1

πŸ‘€ getSeed is probably something we can use to seed fast-check in Vitest context πŸ€”

vitest.dev/api/advanced...

22.01.2026 21:26 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0