{"library":"verify-it","type":"library","category":null,"description":"verify-it is a NodeJS library designed for generating randomized property inputs and test data, intended to be used with existing test runners like `node:test`, Mocha, Jest, or Vitest. It operates by delegating test execution to the `it`/`test` and `describe` functions provided by the user's chosen test framework. The current stable version is 2.4.0. The library receives consistent updates, indicated by its recent release history, though a formal release cadence is not explicitly stated. A key differentiator is its focus on *data generation* for single-run test scenarios rather than full property-based testing that explores many permutations, ensuring each test scenario runs once with the requested randomized inputs. It provides a set of built-in generators (`Gen.string`, `Gen.object`, etc.) and allows for easy creation of custom generators. As of v2.4.0, explicit initialization via `init()` is required, deprecating the previously available global `verify` object, which enhances compatibility with various test environments that do not automatically inject globals.","language":"javascript","status":"active","version":"2.4.0","tags":["javascript","testing","test","randomization","random","data","property","generation","generator","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install verify-it","imports":["import { init } from 'verify-it'","import { Gen } from 'verify-it'","const verify = init({ it, describe })"]},{"cmd":"yarn add verify-it","imports":[]},{"cmd":"pnpm add verify-it","imports":[]}],"homepage":null,"github":"https://github.com/bbc/verify-it","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/verify-it","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/verify-it/compatibility"}}