find-cypress-specs 1.28.0 → 1.29.0
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 +6 -0
- package/package.json +5 -4
- package/src/index.js +3 -0
- package/src/print.js +1 -0
package/README.md
CHANGED
|
@@ -234,6 +234,12 @@ Run the utility with environment variable `DEBUG=find-cypress-specs` to see the
|
|
|
234
234
|
|
|
235
235
|

|
|
236
236
|
|
|
237
|
+
Finding tests in the individual specs uses [find-test-names](https://github.com/bahmutov/find-test-names) so you might want to enable debugging both modules at once:
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
$ DEBUG=find-cypress-specs,find-test-names npx find-cypress-specs --names
|
|
241
|
+
```
|
|
242
|
+
|
|
237
243
|
## Videos
|
|
238
244
|
|
|
239
245
|
- [Use Ava Snapshots And Execa-wrap To Write End-to-End Tests For CLI Utilities](https://youtu.be/rsw17RqP0G0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "find-cypress-specs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "Find Cypress spec files using the config settings",
|
|
5
5
|
"main": "src",
|
|
6
6
|
"files": [
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"semantic-release": "semantic-release",
|
|
29
29
|
"deps": "spec-change --folder . --mask 'cypress/**/*.{js,ts}'",
|
|
30
30
|
"deps-changed": "DEBUG=find-cypress-specs node ./bin/find --branch main --parent --trace-imports cypress --time-trace --cache-trace",
|
|
31
|
-
"demo-component": "DEBUG=find-cypress-specs node ./bin/find --component --names"
|
|
31
|
+
"demo-component": "DEBUG=find-cypress-specs node ./bin/find --component --names",
|
|
32
|
+
"demo-exclusive": "npm run test-names --prefix test-exclusive --silent"
|
|
32
33
|
},
|
|
33
34
|
"repository": {
|
|
34
35
|
"type": "git",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"execa-wrap": "^1.4.0",
|
|
50
51
|
"prettier": "^2.5.1",
|
|
51
52
|
"really-need": "^1.9.2",
|
|
52
|
-
"semantic-release": "20.1.
|
|
53
|
+
"semantic-release": "20.1.1",
|
|
53
54
|
"sinon": "^13.0.1",
|
|
54
55
|
"typescript": "^4.6.3"
|
|
55
56
|
},
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"arg": "^5.0.1",
|
|
59
60
|
"console.table": "^0.10.0",
|
|
60
61
|
"debug": "^4.3.3",
|
|
61
|
-
"find-test-names": "1.
|
|
62
|
+
"find-test-names": "1.28.1",
|
|
62
63
|
"globby": "^11.0.4",
|
|
63
64
|
"minimatch": "^3.0.4",
|
|
64
65
|
"pluralize": "^8.0.0",
|
package/src/index.js
CHANGED
|
@@ -241,6 +241,9 @@ function collectResults(structure, results) {
|
|
|
241
241
|
if (t.pending) {
|
|
242
242
|
info.pending = t.pending
|
|
243
243
|
}
|
|
244
|
+
if (t.exclusive) {
|
|
245
|
+
info.exclusive = t.exclusive
|
|
246
|
+
}
|
|
244
247
|
results.push(info)
|
|
245
248
|
if (t.type === 'suite') {
|
|
246
249
|
if (t.suites && t.suites.length) {
|
package/src/print.js
CHANGED
|
@@ -11,6 +11,7 @@ function stringFileTests(fileName, fileInfo) {
|
|
|
11
11
|
? `${fileName} (${testCount}, ${fileInfo.counts.pending} pending)`
|
|
12
12
|
: `${fileName} (${testCount})`
|
|
13
13
|
|
|
14
|
+
// console.log(fileInfo.tests)
|
|
14
15
|
const body = formatTestList(fileInfo.tests)
|
|
15
16
|
|
|
16
17
|
return headerLine + '\n' + body + '\n'
|