Hacker News new | ask | show | jobs
by zerego 1993 days ago
What you're looking for is called model based testing.

There is also property based testing which generates random data for the tests.

You can read more about this in the official documentation of this npm package https://www.npmjs.com/package/fast-check

I know there are plugins for cypress and most likely to other tools to be able to setup model based tests.