This repository is an example of setting environment for BDD using Jest, Cucumber.JS and Typescript
- NodeJS 12.x+
$ git clone https://github.com/haandol/jest-cucumber-tutorial
$ cd jest-cucumber-tutorial
$ npm i
$ npm test
> [email protected] test /Users/dongkyl/Documents/git/jest-cucumber-tutorial
> jest
PASS specs/sample.spec.ts
PASS specs/step-definitions/logging-in.steps.ts
PASS specs/step-definitions/online-sales.steps.ts
Test Suites: 3 passed, 3 total
Tests: 6 passed, 6 total
Snapshots: 0 total
Time: 4.093 s
Ran all test suites.