Closed chinkjieh closed 2 years ago
Check the install section again
yes i did but i m using typescript so I cant do require
pardon me.
I have updated it to be clear in both cases https://github.com/cypress-io/cypress-grep#install
thank you for the prompt reply but
// if you want to use the "import" keyword
import registerCypressGrep from 'cypress-grep'
registerCypressGrep()
I followed your docs the install section and got this
File '/node_modules/cypress-grep/src/index.d.ts' is not a module.
Likewise, the new installation instructions do not work for me.
Reverting to:
require('cypress-grep')()
Seems to work. Also on a TS project, though I assume you need esModuleInterop: true
in your tsconfig.json
thank you for the prompt reply but
// if you want to use the "import" keyword import registerCypressGrep from 'cypress-grep' registerCypressGrep()
I followed your docs the install section and got this
File '/node_modules/cypress-grep/src/index.d.ts' is not a module.
Why is this issue closed? This still happens.
I ran
DEBUG=cypress-grep cypress run --spec cypress/integration/test.spec.ts --env grep=zebra
logs
test.spec.ts
Outcome: spec with all 3
it()
ran with no filtering performed when no test should be running cause ofgrep=zebra
triedgrepTag=tag1
and allit()
ran too.I installed
"cypress-grep": "^2.13.1"
import 'cypress-grep';
incypress/support/index.ts
in
cypress/plugins/index.js
in
tsconfig.json
npm ls cypress-grep
shows mecypress-grep@2.13.1
correctlyPlease help let me know if I m missing anything here. Thank you in advance!