find-cypress-specs 1.29.1 → 1.29.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 +15 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -209,10 +209,23 @@ function getSpecs(options, type) {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
function findCypressSpecs(options, type = 'e2e') {
|
|
212
|
-
debug(
|
|
212
|
+
debug(
|
|
213
|
+
'finding specs of type %s for Cypress version %s',
|
|
214
|
+
type,
|
|
215
|
+
options.version,
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
if (typeof options.version !== 'string') {
|
|
219
|
+
if ('integrationFolder' in options) {
|
|
220
|
+
options.version = '9.0.0'
|
|
221
|
+
} else {
|
|
222
|
+
options.version = '10.0.0'
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const [major] = options.version.split('.').map(Number)
|
|
213
226
|
|
|
214
227
|
if (type === 'e2e') {
|
|
215
|
-
if (
|
|
228
|
+
if (major >= 10) {
|
|
216
229
|
debug('config has "e2e" property, treating as Cypress v10+')
|
|
217
230
|
const specs = findCypressSpecsV10(options, type)
|
|
218
231
|
return specs
|