jest-joi-schema
Install via npm
npm install jest-joi-schema --save
Usage
In any test file:
;expect;
or add it directly in setupTestFrameworkScriptFile
.
const joi = ; const userSchema = joiobject firstName: joi lastName: joi email: joi; const options = allowUnknown: true ; ;