Extension of jest-json-schema providing expressive, chainable matchers for JSON schema validation in Jest tests. Version 1.0.1, maintained as needed. Key differentiators: includes predefined types (uuid, dateTime, url, path, etc.), strict object checking, combined matchers like anyOf, exactly, arrayOfItems, and a simple expectToMatchSchema function. Handles common JSON validation needs with minimal boilerplate compared to raw ajv usage.
npm install jest-json-schema-extendedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up and use expectToMatchSchema with strictObject, arrayOfItems, stringType, and numberType matchers.
Call setup() only once in a setup file to avoid duplicate matchers.
Consider migrating to ajv-based matchers or a more actively maintained library.
Use a dedicated UUID validator for strict version checking.
Explicitly pass { allowAdditionalProperties: true } if needed.Call setup() in a Jest setup file or at the top of the test file.
Run 'npm install --save-dev jest-json-schema-extended'.