find-cypress-specs 1.27.0 → 1.27.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 +1 -1
- package/src/index.js +18 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -159,6 +159,7 @@ function findCypressSpecsV10(opts = {}, type = 'e2e') {
|
|
|
159
159
|
if (type === 'component') {
|
|
160
160
|
const e2eIgnorePattern = options.e2e?.specPattern || e2eDefaults.specPattern
|
|
161
161
|
ignorePatterns.push(e2eIgnorePattern)
|
|
162
|
+
ignorePatterns.push('node_modules/**')
|
|
162
163
|
}
|
|
163
164
|
|
|
164
165
|
debug('ignore patterns %o', ignorePatterns)
|
|
@@ -183,10 +184,26 @@ function findCypressSpecsV10(opts = {}, type = 'e2e') {
|
|
|
183
184
|
return filtered
|
|
184
185
|
}
|
|
185
186
|
|
|
186
|
-
function getSpecs(options, type
|
|
187
|
+
function getSpecs(options, type) {
|
|
187
188
|
if (typeof options === 'undefined') {
|
|
188
189
|
options = getConfig()
|
|
190
|
+
if (typeof type === 'undefined') {
|
|
191
|
+
type = 'e2e'
|
|
192
|
+
}
|
|
193
|
+
} else {
|
|
194
|
+
// we might have resolved config object
|
|
195
|
+
// passed from the "setupNode..." callback
|
|
196
|
+
if ('testingType' in options) {
|
|
197
|
+
type = options.testingType
|
|
198
|
+
options = {
|
|
199
|
+
[type]: {
|
|
200
|
+
specPattern: options.specPattern,
|
|
201
|
+
excludeSpecPattern: options.excludeSpecPattern,
|
|
202
|
+
},
|
|
203
|
+
}
|
|
204
|
+
}
|
|
189
205
|
}
|
|
206
|
+
|
|
190
207
|
return findCypressSpecs(options, type)
|
|
191
208
|
}
|
|
192
209
|
|