find-cypress-specs 1.36.0 → 1.36.2
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 -2
- package/src/index.js +4 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Find Cypress spec files using the config settings
|
|
4
4
|
|
|
5
|
-

|
|
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.
|
|
3
|
+
"version": "1.36.2",
|
|
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.
|
|
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[] */
|
|
@@ -226,6 +229,7 @@ function getSpecs(options, type, returnAbsolute = false) {
|
|
|
226
229
|
type = options.testingType
|
|
227
230
|
options = {
|
|
228
231
|
version: options.version,
|
|
232
|
+
projectRoot: options.projectRoot,
|
|
229
233
|
[type]: {
|
|
230
234
|
specPattern: options.specPattern,
|
|
231
235
|
excludeSpecPattern: options.excludeSpecPattern,
|