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

267
Views
¿Cómo puedo saber qué porcentaje está cubierto por mis pruebas?

Quiero saber cuánto de mi proyecto está cubierto por mis pruebas, y actualmente estoy tratando de usar broma para hacerlo.

Este es mi jest.config.js :

 module.exports = { verbose: true, preset: '@vue/cli-plugin-unit-jest', transform: { '^.+\\.vue$': 'vue-jest', }, jest: { coverageThreshold: { global: { branches: 50, functions: 50, lines: 50, statements: 50, }, './src/components/': { branches: 40, statements: 40, }, './src/reducers/**/*.js': { statements: 90, }, './src/api/very-important-module.js': { branches: 100, functions: 100, lines: 100, statements: 100, }, }, }, }

Pero cuando intenté ejecutar el comando jest --coverage --coverageReporters="json-summary"

Me sale el error: bash: jest: command not found ¿Cómo resuelvo este error?

mis dependencias de desarrollo son:

 "eslint-plugin-vue": "^7.0.0", "jest": "^27.5.0", "jest-cli": "^27.5.0",
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

tu error es

bash: broma: comando no encontrado

Lo que significa que jest no se agrega a su proyecto/instalado. Instálelo con: npm install --save-dev jest .

Más información sobre broma

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!