It is the next step after generating test data on a website: when you need a thousand users in a seed or a fresh object per test, that belongs in code. npm install @faker-js/faker --save-dev and you are set. For locale-specific data, import the prebuilt instance, for example import { fakerPT_BR as faker } from '@faker-js/faker'. The docs recommend importing only the locale you use, which also speeds up test suite startup.
The feature that turns a flaky test into a reliable one is faker.seed(123): with the same seed, the sequence repeats. Without it, a test that fails one time in twenty becomes a mystery.
The docs list two exceptions that catch everyone. Upgrading the library can change the values produced by the same seed, so snapshots built on Faker data break on upgrade. And methods relative to today (faker.date.past, faker.date.recent) shift with the day the test runs, seed or not. Pin them with faker.setDefaultRefDate().