Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Add alternative test framework setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed May 20, 2018
1 parent 4c0cba6 commit 7805ed4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,24 @@ Add jest-extended to your Jest setupTestFrameworkScriptFile configuration. [See
}
```

If you are already using another test framework, like [jest-chain](https://github.com/mattphillips/jest-chain), then you should create a test setup file and `require` each of the frameworks you are using.

For example:

```js
// ./testSetup.js
require('jest-extended');
require('any other test framework libraries you are using');
```

Then in your Jest config:

```json
"jest": {
"setupTestFrameworkScriptFile": "./testSetup.js"
}
```

## API

#### .pass(message)
Expand Down

0 comments on commit 7805ed4

Please sign in to comment.