https://cypress.io logo
is someone using cypress grep? <@96346275980522707...
# e2e-testing
v
is someone using cypress grep? @billions-barista-30103/grep not the older cypress-grep plugin ? I can't seem to be able to make it working right: package.json
Copy code
"devDependencies": {
    "@cypress/grep": "3.1.0",
cypress.config.ts
Copy code
export default defineConfig({
  ...
  e2e: {
    ...
    setupNodeEvents(on, config) {
      const pluginFile = require('../../plugins/index.ts');
      require('cypress-grep/src/plugin')(config);
      pluginFile(on, config);
      return config;
    },
  },
});
plugins/index.ts
Copy code
const registerCypressGrep = require('cypress-grep');

module.exports = (on, config) => {
  // we register our plugin using its register method:
  registerCypressGrep();