find-cypress-specs 1.36.0 → 1.36.1

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Find Cypress spec files using the config settings
4
4
 
5
- ![Cypress tests](https://img.shields.io/badge/cy%20tests-E2E%204%20%7C%20component%202-blue)
5
+ ![Cypress tests](https://img.shields.io/badge/cy%20tests-E2E%205%20%7C%20component%202-blue)
6
6
 
7
7
  ```bash
8
8
  $ npx find-cypress-specs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "find-cypress-specs",
3
- "version": "1.36.0",
3
+ "version": "1.36.1",
4
4
  "description": "Find Cypress spec files using the config settings",
5
5
  "main": "src",
6
6
  "files": [
@@ -25,6 +25,7 @@
25
25
  "demo-names-and-tags-json": "node ./bin/find --names --tags --json",
26
26
  "demo-names-json": "node ./bin/find --names --json",
27
27
  "demo-names-tagged": "node ./bin/find --names --tagged @user",
28
+ "demo-subfolder": "DEBUG=find-cypress-specs CYPRESS_CONFIG_FILE=mocks/my-app/e2e/cypress.config.js node ./bin/find --names",
28
29
  "print-changed-specs": "node ./bin/find --branch main",
29
30
  "count-changed-specs": "node ./bin/find --branch main --count",
30
31
  "demo-test-counts": "node ./bin/find --test-counts",
@@ -52,7 +53,7 @@
52
53
  "homepage": "https://github.com/bahmutov/find-cypress-specs#readme",
53
54
  "devDependencies": {
54
55
  "ava": "^4.0.0",
55
- "cypress": "13.3.0",
56
+ "cypress": "13.3.1",
56
57
  "dependency-version-badge": "^1.11.0",
57
58
  "execa-wrap": "^1.4.0",
58
59
  "prettier": "^2.5.1",
package/src/index.js CHANGED
@@ -174,6 +174,9 @@ function findCypressSpecsV10(opts = {}, type = 'e2e', returnAbsolute = false) {
174
174
  ignore,
175
175
  absolute: returnAbsolute,
176
176
  }
177
+ if (opts.projectRoot) {
178
+ globbyOptions.cwd = opts.projectRoot
179
+ }
177
180
  debug('globby options %s %o', options.specPattern, globbyOptions)
178
181
 
179
182
  /** @type string[] */