npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

js-given

0.0.3 • Public • Published

Build Status Dependency Status devDependency Status

jsGiven

A JavaScript frontend to JGiven

It aims to provide a BDD frontend (behaving very much like jGiven) producing json reports compatible with JGiven's web application.

scenarios('recipes', {given, when, then} => {
  return {
     a_pancake_can_be_fried_out_of_an_egg_milk_and_flour() {
      given().an_egg().
        and().some_milk().
        and().the_ingredient('flour')
 
      when().the_cook_mangles_everthing_to_a_dough().
        and().the_cook_fries_the_dough_in_a_pan()
 
      then().the_resulting_meal_is_a_pan_cake()
  }
})

It's not a test runner, it's not replacing Jest, Ava, Tap, Mocha, Jasmine, Karma, Webdriver, Nightwatch or Protractor. It aims to be usable with those runners.

It's neither a test assertion library, it's not aimed to replace ChaiJS, Jasmine or the test runner assertion library. It aims to be usable with your favourite assertion library.

It aims to provide the most confortable developper experience with optional ES6 syntax, and optional FlowType or TypeScript typings.

It's not usable yet !

install

npm i js-given

Downloadsweekly downloads

184

version

0.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability