How to use @glennsl/bs-jest - 4 common examples

To help you get started, we’ve selected a few @glennsl/bs-jest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glennsl / rebase / __tests__ / helpers / TestHelpers.bs.js View on Github external
return Jest.test(name, (function () {
                return Jest.Expect[/* toBe */2](true, Jest.Expect[/* expect */0](property));
              }));
}
github glennsl / rebase / __tests__ / helpers / TestHelpers.bs.js View on Github external
function testProperty(name, property) {
  return Jest.test(name, (function () {
                return Jest.Expect[/* toBe */2](true, Jest.Expect[/* expect */0](property));
              }));
}
github glennsl / rebase / __tests__ / helpers / TestHelpers.bs.js View on Github external
return Jest.testAll(name, cases, (function (param) {
                return Curry._2(Jest.Expect[/* Operators */24][/* = */5], Jest.Expect[/* expect */0](Curry._1(f, param[0])), param[1]);
              }));
}
github glennsl / rebase / __tests__ / helpers / TestHelpers.bs.js View on Github external
function testFn(name, f, cases) {
  return Jest.testAll(name, cases, (function (param) {
                return Curry._2(Jest.Expect[/* Operators */24][/* = */5], Jest.Expect[/* expect */0](Curry._1(f, param[0])), param[1]);
              }));
}

@glennsl/bs-jest

BuckleScript bindings to the Jest testing framework

MIT
Latest version published 4 years ago

Package Health Score

49 / 100
Full package analysis