1.0.7 • Published 6 years ago

jest-cakes v1.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Jest-cakes

Build Status

What Mocha-cakes is for Mocha. Jest-cakes is for Jest.

Let's you use 'Given', 'When', 'Then' and 'And' in Jest to describe your tests.

Installation

NPM:

npm install --save-dev jest-cakes

Usage

require("jest-cakes");

Scenario("Feature test", () => {
  Given("Data is loaded", (done) => {
    done();
  });

  When("Site is requested", () => {
    //do something..
  });

  Then("We get expected result", () => {
    //expect(..).toBe(..);
  });

  And.skip("Do this later", () => {
  });
});
1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago