1.7.0 • Published 4 years ago

@orioro/jest-util v1.7.0

Weekly downloads
102
License
ISC
Repository
github
Last release
4 years ago

@orioro/jest-util

npm install @orioro/jest-util
yarn add @orioro/jest-util

Set 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}
1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago