@bahmutov/cy-grep 2.0.8 → 2.0.9

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/support.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmutov/cy-grep",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Filter Cypress tests using title or tags",
5
5
  "main": "src/support.js",
6
6
  "scripts": {
package/src/support.js CHANGED
@@ -181,7 +181,12 @@ function registerCyGrep() {
181
181
 
182
182
  if (omitFiltered) {
183
183
  // omit the filtered tests completely
184
- return
184
+ // in order to be compatible with Mocha, create fake method and test object
185
+ return {
186
+ parent: {
187
+ appendOnlyTest: () => {},
188
+ },
189
+ }
185
190
  }
186
191
 
187
192
  // skip tests without grep string in their names