Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

82
Views
Cómo usar los complementos de Cypress en la versión 10

Cuando use htmlvalidate con cypress (versión 9 o menos), simplemente puede instalarlo a través de cypress/plugins/index.js: :

 const htmlvalidate = require("cypress-html-validate/dist/plugin"); module.exports = (on) => { htmlvalidate.install(on); };

Sin embargo, los complementos se depreciaron en la versión 10 de Cypress y debe usar config .

Sin embargo, no me queda claro cómo habilitar htmlvalidator de esta manera. P.ej:

 const {defineConfig} = require('cypress'); const {htmlvalidate} = require("cypress-html-validate/dist/plugin"); module.exports = defineConfig({ projectId: '4dofbo', e2e: { setupNodeEvents(on, config) { on('task', { // WHAT GOES HERE? }); }, }, });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No necesita utilizar ninguna on('task') , y en su lugar puede usar la función en setupNodeEvents .

Directamente desde la documentación de cypress-html-validate

 export default defineConfig({ e2e: { setupNodeEvents(on) { htmlvalidate.install(on); }, }, });
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!