find-cypress-specs 1.1.1 → 1.2.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.
Files changed (2) hide show
  1. package/bin/find.js +5 -1
  2. package/package.json +4 -3
package/bin/find.js CHANGED
@@ -3,6 +3,7 @@
3
3
  const arg = require('arg')
4
4
  const { getSpecs } = require('../src')
5
5
  const fs = require('fs')
6
+ const pluralize = require('pluralize')
6
7
  const { getTestNames, formatTestList } = require('find-test-names')
7
8
 
8
9
  const args = arg({
@@ -23,7 +24,10 @@ if (args['--names']) {
23
24
  const result = getTestNames(source, true)
24
25
  // enable if need to debug the parsed test
25
26
  // console.dir(result.structure, { depth: null })
26
- console.log(filename)
27
+
28
+ const testCount = pluralize('test', result.testNames.length, true)
29
+
30
+ console.log('%s (%s)', filename, testCount)
27
31
  console.log(formatTestList(result.structure))
28
32
  console.log('')
29
33
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "find-cypress-specs",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Find Cypress spec files using the config settings",
5
5
  "main": "src",
6
6
  "files": [
@@ -39,8 +39,9 @@
39
39
  "dependencies": {
40
40
  "arg": "^5.0.1",
41
41
  "debug": "^4.3.3",
42
- "find-test-names": "^1.9.2",
42
+ "find-test-names": "^1.9.3",
43
43
  "globby": "^11.0.4",
44
- "minimatch": "^3.0.4"
44
+ "minimatch": "^3.0.4",
45
+ "pluralize": "^8.0.0"
45
46
  }
46
47
  }