Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

83
Vistas
How to use cypress plugins in version 10

When using htmlvalidate with cypress (version 9 or less) you can simply install via cypress/plugins/index.js::

const htmlvalidate = require("cypress-html-validate/dist/plugin");

module.exports = (on) => {
  htmlvalidate.install(on);
}; 

However plugins was depreciated in cypress version 10 and you need to use config.

However it's not clear to me how to enable htmlvalidator in this manner. E.g:

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 Respuestas
Responde la pregunta

0

You don't need to utilize any on('task') function, and instead can use the function in setupNodeEvents.

Directly from the cypress-html-validate documentation

export default defineConfig({
  e2e: {
    setupNodeEvents(on) {
      htmlvalidate.install(on);
    },
  },
});
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda