Basically what this test does is using fast-check to generate random integers (with fc.integer) which is then passed to our callback to make and assertion. And what can we assert it's always true when transferring money from Alice to Bob? What is a property of a transference? Here they both start with 10 pesos, so the property we check here is that no matter how much money is being transferred, Bob should always end up with more money than Alice. We also ignore any errors, as we are only interested in the successful transfers for now.
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.
Generating dummy entities with random data for tests based on types
4 projects | reddit.com/r/typescript | 23 Jun 2022
Best practice where to test validation?
1 project | reddit.com/r/node | 7 May 2022
Fast-check: How it works
1 project | news.ycombinator.com | 2 Dec 2021
Advent of PBT 2021
1 project | dev.to | 30 Nov 2021
Improve our code with the property-based testing and fast-check
1 project | dev.to | 3 Nov 2021