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

100
Views
jest-dom violación de la regla eslint no romper la prueba

Estoy usando Reactjs con CRA. Tengo una prueba como esta;

ingrese la descripción de la imagen aquí

Estoy obligando deliberadamente a jest-dom a producir esta advertencia prefer-to-have-text-content . Mi prueba aún funciona bien y el resultado es un éxito. Ahora, quiero que mi prueba falle. Mi archivo .eslintrc es como;

 { "plugins": ["testing-library", "jest-dom"], "extends": [ "react-app", "react-app/jest", "plugin:testing-library/react", "plugin:jest-dom/recommended" ], "rules": { "jest-dom/prefer-to-have-text-content": "error" } }

Sin embargo, ¡mi prueba aún tiene éxito! ¿Cómo puedo hacer que mi prueba falle en caso de tales problemas de broma?

about 4 years ago · Juan Pablo Isaza
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!