diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/test-exclude/README.md | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/test-exclude/README.md')
-rw-r--r-- | node_modules/test-exclude/README.md | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/node_modules/test-exclude/README.md b/node_modules/test-exclude/README.md deleted file mode 100644 index fd844f820..000000000 --- a/node_modules/test-exclude/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# test-exclude - -The file include/exclude logic used by [nyc](https://github.com/istanbuljs/nyc). - -[](https://travis-ci.org/istanbuljs/test-exclude) -[](https://coveralls.io/github/istanbuljs/test-exclude?branch=master) -[](https://github.com/conventional-changelog/standard-version) -[](https://greenkeeper.io/) - -## Usage - -```js -const exclude = require('test-exclude') -if (exclude().shouldInstrument('./foo.js')) { - // let's instrument this file for test coverage! -} -``` - -_you can load configuration from a key in package.json:_ - -_package.json_ - -```json -{ - "name": "awesome-module", - "test": { - "include": ["**/index.js"] - } -} -``` - -_app.js_ - -```js -const exclude = require('test-exclude') -if (exclude({configKey: 'test'}).shouldInstrument('./index.js')) { - // let's instrument this file for test coverage! -} -``` - -## Including node_modules folder - -by default the `node_modules` folder is added to all groups of -exclude rules. In the rare case that you wish to instrument files -stored in `node_modules`, a negative glob can be used: - -```js -const exclude = require('test-exclude') -const e = exclude({ - exclude: ['!**/node_modules/**'] -}) -``` - -## License - -ISC |