Skip to content

Commit

Permalink
Paragraph about typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Sep 28, 2017
1 parent 8f908ad commit c7d141e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Expand Up @@ -29,15 +29,6 @@ const t = require('tap')
require('tap-given')(t)
require('chai').should()

// For Typescript:
//
// import * as chai from 'chai'
// import * as tap from 'tap'
// import { tapGiven } from 'tap-given'
//
// tapGiven(tap)
// chai.should()

Feature('TDD in Given-When-Then style for TAP', () => {
Scenario('Basic scenario', () => {
let a, b, c
Expand Down Expand Up @@ -98,6 +89,16 @@ and are optional.
All functions except `BeforeEach` and `AfterEach` add some prefix to the
description of the step.

### Typescript

Use following syntax instead `require`:

```js
import * as tap from 'tap'
import { tapGiven } from 'tap-given'
tapGiven(tap)
```

### Linter

Install `eslint-plugin-tap-given` module and use in `package.json`:
Expand Down

0 comments on commit c7d141e

Please sign in to comment.