find-cypress-specs 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +3 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -43,6 +43,8 @@ function findCypressSpecs(opts = {}) {
|
|
|
43
43
|
|
|
44
44
|
// go through the files again and eliminate files that match
|
|
45
45
|
// the ignore patterns
|
|
46
|
+
const ignorePatterns = [].concat(options.ignoreTestFiles)
|
|
47
|
+
debug('ignore patterns %o', ignorePatterns)
|
|
46
48
|
|
|
47
49
|
// a function which returns true if the file does NOT match
|
|
48
50
|
// all of our ignored patterns
|
|
@@ -51,7 +53,7 @@ function findCypressSpecs(opts = {}) {
|
|
|
51
53
|
// as regular characters without needing an '.' in the
|
|
52
54
|
// using {matchBase: true} here so that patterns without a globstar **
|
|
53
55
|
// match against the basename of the file
|
|
54
|
-
return
|
|
56
|
+
return ignorePatterns.every((pattern) => {
|
|
55
57
|
return !minimatch(file, pattern, MINIMATCH_OPTIONS)
|
|
56
58
|
})
|
|
57
59
|
}
|