find-cypress-specs 1.36.3 → 1.36.4

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/package.json +1 -1
  2. package/src/index.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "find-cypress-specs",
3
- "version": "1.36.3",
3
+ "version": "1.36.4",
4
4
  "description": "Find Cypress spec files using the config settings",
5
5
  "main": "src",
6
6
  "files": [
package/src/index.js CHANGED
@@ -86,7 +86,7 @@ function getConfig() {
86
86
  throw new Error('Config file should be .ts, .js or .json file')
87
87
  }
88
88
 
89
- function findCypressSpecsV9(opts = {}) {
89
+ function findCypressSpecsV9(opts = {}, returnAbsolute = false) {
90
90
  const defaults = {
91
91
  integrationFolder: 'cypress/integration',
92
92
  testFiles: '**/*.{js,ts}',
@@ -103,6 +103,7 @@ function findCypressSpecsV9(opts = {}) {
103
103
  sort: true,
104
104
  cwd: options.integrationFolder,
105
105
  ignore: options.ignoreTestFiles,
106
+ absolute: returnAbsolute,
106
107
  })
107
108
  debug('found %d file(s) %o', files.length, files)
108
109
 
@@ -271,7 +272,7 @@ function findCypressSpecs(options, type = 'e2e', returnAbsolute = false) {
271
272
  }
272
273
 
273
274
  debug('reading Cypress config < v10')
274
- const specs = findCypressSpecsV9(options)
275
+ const specs = findCypressSpecsV9(options, returnAbsolute)
275
276
  return specs
276
277
  } else if (type === 'component') {
277
278
  debug('finding component specs')