For many years I’ve been using FakerJS library to generate fake realistic random data in my test automation projects. Recently I discovered ChanceJS and I am happy with it. This article will show you how to use this library and my perspective about why would I consider using it from now on.
Size significantly smaller (~12 times)
node_modules with faker (v.8.1.0) package = 30.5MB
node_modules with chance (v1.1.11) package = 2.6MB
Same things, different syntax

TUTORIAL
Prerequisites: NodeJS & NPM
Installation: npm install chance
Examples & Results:

Enjoyed this article? Make sure to subscribe to my YouTube Channel for more Test Automation tutorials, and follow me on LinkedIn and Twitter for regular insights.
Looking to accelerate your test automation journey?
I’ve designed a personalized 1-on-1 mentoring program tailored to boost your skills. Reach out at iamqarv@gmail.com for more details 🚀
