test-exclude
Advanced tools
Comparing version 3.3.0 to 4.0.0
@@ -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) |
@@ -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', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19544
256
1