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
I suspect this config to be wrong in cypress/support/e2e.ts (as I don't see any registerCypressGrep exported in the plugin code).
// "import" with `@ts-ignore`
// @see error 2306 https://github.com/microsoft/TypeScript/blob/3fcd1b51a1e6b16d007b368229af03455c7d5794/src/compiler/diagnosticMessages.json#L1635
// @ts-ignore
import registerCypressGrep from '@cypress/grep'
registerCypressGrep()
Let me know if there are any other mistake done on my config.
Current behaviour on my minimal repro:
Two tests are run even if only one mentione 'config' tag
DEBUG=@cypress/grep npx cypress run --env grepTags=config
===============
Running: test_cases.cy.ts
Dummy tests
✓ works as an array (20ms)
✓ works as a string (9ms)
Expected behavior on my minimal repro:
Only the test with tag 'config' is run
DEBUG=@cypress/grep npx cypress run --env grepTags=config
===============
Running: test_cases.cy.ts
Dummy tests
✓ works as an array (20ms)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone :)
I am currently trying to use cypress/grep plugin to efficiently filter my test cases.
Currently I am using a Typescript config on my cypress porject.
I tried to set up my project in order to use cypress/grep but with no success for instance...
I am following these instructions: https://github.com/cypress-io/cypress/tree/develop/npm/grep#install
I let you see my config using this minimal repro: https://github.com/avi-ran/cypress-grep-ts-issue/tree/main
I suspect this config to be wrong in
cypress/support/e2e.ts
(as I don't see anyregisterCypressGrep
exported in the plugin code).Let me know if there are any other mistake done on my config.
Current behaviour on my minimal repro:
Expected behavior on my minimal repro:
Have a nice day!
Kind regards,
Aviran
Beta Was this translation helpful? Give feedback.
All reactions