2.0.2 • Published 1 year ago

@orioro/jest-util v2.0.2

Weekly downloads
102
License
ISC
Repository
-
Last release
1 year 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}
2.0.2

1 year ago

2.0.1

1 year ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago