Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/debitoor/mocha-strict-dependencies

Mocha test, that checks that you have strict dependencies on your package.json, except of whitelisted
https://github.com/debitoor/mocha-strict-dependencies

Last synced: 12 days ago
JSON representation

Mocha test, that checks that you have strict dependencies on your package.json, except of whitelisted

Awesome Lists containing this project

README

        

# mocha-strict-dependencies [![npm version](https://badge.fury.io/js/%40debitoor%2Fmocha-strict-dependencies.svg)](https://badge.fury.io/js/%40debitoor%2Fmocha-strict-dependencies) [![Build Status](https://travis-ci.org/debitoor/mocha-strict-dependencies.svg?branch=master)](https://travis-ci.org/debitoor/mocha-strict-dependencies)
Mocha test, that checks that you have strict dependencies in your package.json, except of whitelisted

# Usage
```bash
npm i -DE @debitoor/mocha-strict-dependencies
echo "require('@debitoor/mocha-strict-dependencies')([]);" > test/strict-dependencies.spec.js
git add test/strict-dependencies.spec.js
```
# Configuration
```js
const listOfPackagesThatShouldHaveUnfixedVersion = [
'deep-extend',
'chai'
];
require('@debitoor/mocha-strict-dependencies')(listOfPackagesThatShouldHaveUnfixedVersion)
```