2.0.2 • Published 8 months ago
@orioro/jest-util v2.0.2
@orioro/jest-util
npm install @orioro/jest-util
yarn add @orioro/jest-utilSet of utility methods for generating tests using jest.
API Docs
testCases(cases, fn, label)
Takes an array of test cases and generates one test for each case using provided function and label generators
cases{TestCases}fn{Function}label{Function | String}- Returns: {void}
valueLabel(value)
Takes any value as input and returns an adequate label to represent that value.
value{*}- Returns:
label{String}