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

342
Views
Pruebas unitarias de VueJS: no puedo ejecutar mis pruebas. "El comando 'prueba/unidad' no existe"

Estoy tratando de configurar pruebas unitarias con VueJS 3. Al leer los documentos de Vue 3 , instalé test-utils 2.0

Mi archivo package.json se ve así:

 { "name": "testsUnitVue", "version": "0.1.0", "private": true, "scripts": { ... "serve": "vue-cli-service serve", "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit", "lint": "vue-cli-service lint", ... }, "dependencies": { ... }, "devDependencies": { ... "@vue/test-utils": "^2.0.0-rc.21", ... } }

Intento ejecutar mis pruebas con:

 npm run test:unit

Pero tengo el siguiente mensaje de error:

 > testsUnitVue@0.1.0 test:unit > vue-cli-service test:unit ERROR command "test:unit" does not exist.

Tengo un resultado similar con el comando yarn . ¿Como puedo resolver esto?

PD: Si necesita más información, simplemente deje un comentario :)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

@vue/test-utils no proporciona el subcomando unit:test de vue-cli-service. Esos están disponibles cuando se usa uno de los siguientes complementos:

  • https://cli.vuejs.org/core-plugins/unit-jest.html
  • https://cli.vuejs.org/core-plugins/unit-mocha.html

Para obtener instrucciones sobre cómo instalarlos, consulte: https://cli.vuejs.org/guide/plugins-and-presets.html#installing-plugins-in-an-existing-project

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!