Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,31 @@ I know what happens [when you assume](http://www.urbandictionary.com/define.php?

Should this tool support things like piping the coverage data in as an argument? Of course it should. If you want to build that and send a PR I will be all smiles 😀✨. If not then you probably see me do it _eventually_.

## Usage example
After all assumptions are satisfied.
Set scripts in the `package.json`...
```javascript
"scripts": {
"jest": "./node_modules/.bin/jest",
"ratchet": "./node_modules/.bin/jest-coverage-ratchet",
"test": "npm run jest && npm run ratchet && rm -rf coverage"
```

...run...
```bash
npm test
```

...and get it!
```bash
new coverage thresholds:
{
"lines": Number,
"statements": Number,
"functions": Number,
"branches": Number
}
```

## Questions?
Just submit an issue or a PR, I'm no elitist.