Boolean package provides functionality to generate a fake boolean value.
npm
npm install @fakerjs/boolean --save-dev yarn
yarn add @fakerjs/boolean -D importbooleanfrom'@fakerjs/boolean';boolean();//=> trueboolean();//=> falseRun tests
npm run test The MIT License (MIT) Copyright (c) Sergey Romanenko