find-cypress-specs 1.34.5 → 1.34.6
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/README.md +1 -1
- package/package.json +3 -3
- package/src/index.js +13 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# find-cypress-specs [![renovate-app badge][renovate-badge]][renovate-app]  [](https://github.com/bahmutov/find-cypress-specs/actions/workflows/ci.yml)
|
|
2
2
|
|
|
3
3
|
> Find Cypress spec files using the config settings
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "find-cypress-specs",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.6",
|
|
4
4
|
"description": "Find Cypress spec files using the config settings",
|
|
5
5
|
"main": "src",
|
|
6
6
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"homepage": "https://github.com/bahmutov/find-cypress-specs#readme",
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"ava": "^4.0.0",
|
|
54
|
-
"cypress": "12.
|
|
54
|
+
"cypress": "12.17.1",
|
|
55
55
|
"dependency-version-badge": "^1.11.0",
|
|
56
56
|
"execa-wrap": "^1.4.0",
|
|
57
57
|
"prettier": "^2.5.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"console.table": "^0.10.0",
|
|
67
67
|
"debug": "^4.3.3",
|
|
68
68
|
"find-test-names": "1.28.13",
|
|
69
|
-
"globby": "^11.0
|
|
69
|
+
"globby": "^11.1.0",
|
|
70
70
|
"minimatch": "^3.0.4",
|
|
71
71
|
"pluralize": "^8.0.0",
|
|
72
72
|
"require-and-forget": "^1.0.1",
|
package/src/index.js
CHANGED
|
@@ -115,6 +115,7 @@ function findCypressSpecsV9(opts = {}) {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
function findCypressSpecsV10(opts = {}, type = 'e2e') {
|
|
118
|
+
debug('findCypressSpecsV10')
|
|
118
119
|
if (type !== 'e2e' && type !== 'component') {
|
|
119
120
|
throw new Error(`Unknown spec type ${type}`)
|
|
120
121
|
}
|
|
@@ -146,11 +147,19 @@ function findCypressSpecsV10(opts = {}, type = 'e2e') {
|
|
|
146
147
|
|
|
147
148
|
debug('options v10 %o', options)
|
|
148
149
|
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
const ignore = Array.isArray(options.excludeSpecPattern)
|
|
151
|
+
? options.excludeSpecPattern
|
|
152
|
+
: options.excludeSpecPattern
|
|
153
|
+
? [options.excludeSpecPattern]
|
|
154
|
+
: []
|
|
155
|
+
const globbyOptions = {
|
|
151
156
|
sort: true,
|
|
152
|
-
ignore
|
|
153
|
-
}
|
|
157
|
+
ignore,
|
|
158
|
+
}
|
|
159
|
+
debug('globby options %s %o', options.specPattern, globbyOptions)
|
|
160
|
+
|
|
161
|
+
/** @type string[] */
|
|
162
|
+
const files = globby.sync(options.specPattern, globbyOptions)
|
|
154
163
|
debug('found %d file(s) %o', files.length, files)
|
|
155
164
|
|
|
156
165
|
// go through the files again and eliminate files that match
|