Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Latest commit

 

History

History
37 lines (21 loc) · 1.21 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.21 KB

ajv-istanbul

DEPRECATED / ARCHIVED

To measure coverage of your validation code use ajv v7 to compile schemas to standalone validation code - it is now fully imlemented/supported - and use any testing framework you prefer - no need to use this package.

Instrument validation code generated by Ajv to measure test coverage of your schemas

Build Status npm version Gitter

Install

npm i ajv-istanbul --save-dev

Usage

ajv-istanbul requires using Ajv version >= 5.0.1-beta.

var Ajv = require('ajv');
var ajv = new Ajv;
require('ajv-istanbul')(ajv);

See tests for example how to collect coverage and generate reports.

License

MIT