jest-json-schema
JSON →A Jest matcher for validating objects against JSON Schema (draft-04, draft-06, draft-07, 2019-09, 2020-12 via Ajv). Version 6.1.0 supports Node ^12.13.0 || ^14.15.0 || >=15.0.0, with releases every few months. Provides `toMatchSchema` matcher and `matchersWithOptions` for advanced Ajv configuration (custom formats, keywords, Ajv class). Uses Ajv under the hood. Simpler than writing custom matchers, integrates seamlessly into Jest.
Resources
packagejest-json-schema ↗