find-cypress-specs 1.45.0 → 1.45.2
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 +3 -3
- package/src/index.js +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "find-cypress-specs",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.2",
|
|
4
4
|
"description": "Find Cypress spec files using the config settings",
|
|
5
5
|
"main": "src",
|
|
6
6
|
"files": [
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"execa-wrap": "^1.4.0",
|
|
64
64
|
"prettier": "^2.5.1",
|
|
65
65
|
"really-need": "^1.9.2",
|
|
66
|
-
"semantic-release": "24.1.
|
|
66
|
+
"semantic-release": "24.1.1",
|
|
67
67
|
"sinon": "^13.0.1",
|
|
68
68
|
"typescript": "^4.6.3"
|
|
69
69
|
},
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"arg": "^5.0.1",
|
|
73
73
|
"console.table": "^0.10.0",
|
|
74
74
|
"debug": "^4.3.3",
|
|
75
|
-
"find-test-names": "1.28.
|
|
75
|
+
"find-test-names": "1.28.30",
|
|
76
76
|
"globby": "^11.1.0",
|
|
77
77
|
"minimatch": "^3.0.4",
|
|
78
78
|
"pluralize": "^8.0.0",
|
package/src/index.js
CHANGED
|
@@ -181,6 +181,18 @@ function findCypressSpecsV10(opts = {}, type = 'e2e', returnAbsolute = false) {
|
|
|
181
181
|
: options.excludeSpecPattern
|
|
182
182
|
? [options.excludeSpecPattern]
|
|
183
183
|
: []
|
|
184
|
+
|
|
185
|
+
debug('ignore patterns %o', ignore)
|
|
186
|
+
const userIgnoresNodeModules = ignore.some((pattern) =>
|
|
187
|
+
pattern.includes('node_modules'),
|
|
188
|
+
)
|
|
189
|
+
if (userIgnoresNodeModules) {
|
|
190
|
+
debug('user ignored node_modules')
|
|
191
|
+
} else {
|
|
192
|
+
debug('user did not ignore node_modules, adding it')
|
|
193
|
+
ignore.push('**/node_modules/**')
|
|
194
|
+
}
|
|
195
|
+
|
|
184
196
|
const globbyOptions = {
|
|
185
197
|
sort: true,
|
|
186
198
|
ignore,
|