Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

test-exclude

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-exclude - npm Package Compare versions

Comparing version 3.3.0 to 4.0.0

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Change Log

<a name="4.0.0"></a>
# [4.0.0](https://github.com/istanbuljs/test-exclude/compare/v3.3.0...v4.0.0) (2017-01-19)
### Features
* add coverage to default excludes ([#23](https://github.com/istanbuljs/test-exclude/issues/23)) ([59e8bbf](https://github.com/istanbuljs/test-exclude/commit/59e8bbf))
### BREAKING CHANGES
* additional coverage folder is now excluded
<a name="3.3.0"></a>

@@ -7,0 +22,0 @@ # [3.3.0](https://github.com/istanbuljs/test-exclude/compare/v3.2.2...v3.3.0) (2016-11-22)

3

index.js

@@ -63,3 +63,3 @@ const assign = require('object-assign')

relFile = relFile.replace(/^\.[\\\/]/, '') // remove leading './' or '.\'.
relFile = relFile.replace(/^\.[\\/]/, '') // remove leading './' or '.\'.
return (!this.include || micromatch.any(relFile, this.include, {dotfiles: true})) && !micromatch.any(relFile, this.exclude, {dotfiles: true})

@@ -102,2 +102,3 @@ }

exportFunc.defaultExclude = [
'coverage/**',
'test/**',

@@ -104,0 +105,0 @@ 'test{,-*}.js',

{
"name": "test-exclude",
"version": "3.3.0",
"version": "4.0.0",
"description": "test for inclusion or exclusion of paths using pkg-conf and globs",

@@ -8,3 +8,3 @@ "main": "index.js",

"pretest": "standard",
"test": "nyc mocha ./test/*.js",
"test": "nyc mocha",
"release": "standard-version"

@@ -33,5 +33,5 @@ },

"mocha": "^3.1.2",
"nyc": "^8.4.0",
"nyc": "^10.1.2",
"standard": "^8.5.0",
"standard-version": "^3.0.0"
"standard-version": "^4.0.0"
},

@@ -48,3 +48,3 @@ "dependencies": {

"statements": 100,
"branches": 96,
"branches": 97,
"lines": 100,

@@ -56,3 +56,8 @@ "functions": 100,

]
},
"greenkeeper": {
"ignore": [
"read-pkg-up"
]
}
}

@@ -26,2 +26,6 @@ /* global describe, it, context */

it('does not instrument files in the coverage folder by default', function () {
exclude().shouldInstrument('coverage/foo.js').should.equal(false)
})
it('applies exclude rule ahead of include rule', function () {

@@ -88,2 +92,3 @@ const e = exclude({

exclude.defaultExclude.should.deep.equal([
'coverage/**',
'test/**',

@@ -90,0 +95,0 @@ 'test{,-*}.js',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc