Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/debitoor/mocha-strict-dependencies
- Owner: debitoor
- License: mit
- Created: 2017-03-09T10:17:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T10:00:36.000Z (about 4 years ago)
- Last Synced: 2024-10-02T11:15:48.052Z (about 2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```