Cypress Version
11.0.1
Node Version
16.16.0
Package Manager
Yarn version 1.22.19
Operating System
Windows 10 Pro Version 21H2
To practice using the Cypress grep plugin, I have set up a test project called cypress_grep_test_project. I have modified some spec files from "cy.js" to "cy.ts" and intend to utilize this plugin for Continuous Integration testing purposes.
As per the Cypress documentation, the plugins folder is no longer available. Referring to the current plugin documentation, the registerCypressGrep method has been deprecated.
I have included "@cypress/grep" in the ts.config file:
//ts.config file
{
"compilerOptions": {
"target": "ES2022",
"module": "commonjs",
"types": [
"cypress",
"@cypress/grep"
],
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
In the todo.cy.ts file, I have added { tags: 'smoke' } to the describe block:
// todo.cy.ts
describe('example to-do app', { tags: 'smoke' }, () => {
beforeEach(() => {
cy.visit('https://example.cypress.io/todo')
})
At this point, I am unsure of what steps to take next. Any guidance on the matter would be greatly appreciated.
// cypress.config.ts
import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
video: false,
setupNodeEvents(on, config) {
// implement node event listeners here
// What should be done next?
},
}
})