You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: npm/grep/README.md
+24-24
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ All other tests will be marked pending, see why in the [Cypress test statuses](h
19
19
20
20
If you have multiple spec files, all specs will be loaded, and every test will be filtered the same way, since the grep is run-time operation and cannot eliminate the spec files without loading them. If you want to run only specific tests, use the built-in [--spec](https://on.cypress.io/command-line#cypress-run-spec-lt-spec-gt) CLI argument.
21
21
22
-
Watch the video [intro to cypress-grep plugin](https://www.youtube.com/watch?v=HS-Px-Sghd8)
22
+
Watch the video [intro to @cypress/grep plugin](https://www.youtube.com/watch?v=HS-Px-Sghd8)
When debugging a problem, first make sure you are using the expected version of this plugin, as some features might be only available in the [later releases](https://github.com/cypress-io/cypress-grep/releases).
502
+
When debugging a problem, first make sure you are using the expected version of this plugin, as some features might be only available in the [later releases](https://www.npmjs.com/package/@cypress/grep?activeTab=versions).
503
503
504
504
```
505
-
# get the cypress-grep version using NPM
506
-
$ npm ls cypress-grep
505
+
# get the @cypress/grep version using NPM
506
+
$ npm ls @cypress/grep
507
507
...
508
-
└── cypress-grep@2.10.1
509
-
# get the cypress-grep version using Yarn
510
-
$ yarn why cypress-grep
508
+
└── @cypress/grep@2.10.1
509
+
# get the @cypress/grep version using Yarn
510
+
$ yarn why @cypress/grep
511
511
...
512
-
=> Found "cypress-grep@2.10.1"
513
-
info Has been hoisted to "cypress-grep"
512
+
=> Found "@cypress/grep@3.1.0"
513
+
info Has been hoisted to "@cypress/grep"
514
514
info This module exists because it's specified in "devDependencies".
515
515
...
516
516
```
@@ -531,30 +531,30 @@ This module uses [debug](https://github.com/visionmedia/debug#readme) to log ver
531
531
532
532
### Debugging in the plugin
533
533
534
-
Start Cypress with the environment variable `DEBUG=cypress-grep`. You will see a few messages from this plugin in the terminal output:
534
+
Start Cypress with the environment variable `DEBUG=@cypress/grep`. You will see a few messages from this plugin in the terminal output:
535
535
536
536
```
537
-
$ DEBUG=cypress-grep npx cypress run --env grep=works,grepFilterSpecs=true
538
-
cypress-grep: tests with "works" in their names
539
-
cypress-grep: filtering specs using "works" in the title
0 commit comments