# oboy

> Get Mocha, Chai, Proxyquire and Sinon-as-promised in one package! =========================================== Skip the boilerplate, just one line per test is required

Latest version **1.2.1** (published 2016-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install oboy
pnpm add oboy
yarn add oboy
bun add oboy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2016-06-19 |
| First published | 2016-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christian Landgren |
| Maintainers | irony |

## Links

- npm: https://www.npmjs.com/package/oboy
- npm.io page: https://npm.io/package/oboy

## Dependencies (6)

- [chai](https://npm.io/package/chai.md) ^3.4.1
- [mocha](https://npm.io/package/mocha.md) ^2.3.4
- [sinon](https://npm.io/package/sinon.md) ^1.17.2
- [proxyquire](https://npm.io/package/proxyquire.md) ^1.7.3
- [sinon-chai](https://npm.io/package/sinon-chai.md) ^2.8.0
- [sinon-as-promised](https://npm.io/package/sinon-as-promised.md) ^4.0.0

## Recent versions

- 1.2.1 (latest) — 2016-06-19
- 1.2.0 — 2016-06-18
- 1.1.0 — 2016-01-24
- 1.0.0 — 2016-01-24

## README

Get Mocha, Chai, Proxyquire and Sinon-as-promised in one package!
===========================================
Skip the boilerplate, just one line per test is required 

    var oboy = require('oboy')
    oboy((expect, proxyquire) => {
      ...


```
________ ___.                 ._.
\_____  \\_ |__   ____ ___.__.| |
 /   |   \| __ \ /  _ <   |  || |
/    |    \ \_\ (  <_> )___  | \|
\_______  /___  /\____// ____| __
        \/    \/       \/      \/
```


### Why?
It took too much boilerplate to include and configure my favorite assert libs together for every project. Now I just need one: Oboy. If you also use chai, sinon-as-promised, mocha and proxyquire - just install Oboy instead, batteries included.

### To use

    npm install --save-dev oboy

### Write your tests:

    var oboy = require('oboy') // this 
    oboy((expect, sinon, proxyquire) => {
      describe('something', _=>{
        it('works', (done) => {
          done()
        })      
      })

      [... more tests]

    })

### Dynamic bindings

    oboy(should, proxyquire) 

works just as well as:

    oboy(proxyquire, should, sinon) 



### Run your tests

Since Mocha is a dependency you can run the tests with the local cli distributed with your oboy app. Just add this line to your package.json
  
    "scripts": {
      "test": "./node_modules/.bin/mocha tests/*"
    }

So to run the tests, just run

    npm test

### What is Oboy?
Oboy is a chocolate drink in Sweden :)


### License: MIT

---
_Source: https://npm.io/package/oboy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
