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

181
Views
jest test suite no se ejecuta debido a un error de transformación

Estoy ejecutando un conjunto de pruebas de broma muy simple en este momento,

 import { createLocalVue, mount, shallowMount } from '@vue/test-utils'; import ModalRefactored from '../ModalRefactored.vue'; const localVue = createLocalVue(); describe('ModalRefactored', () => { let wrapper; test('it does something', () => { }); })

Cuando ejecuto yarn test:unit me sale el siguiente error,

TypeError: broma: una transformación debe exportar una función de process .

Mi jest.config.js se ve así,

 module.exports = { verbose: true, moduleFileExtensions: [ "js", "json", "vue" ], transform: { ".*\\.(vue)$": "vue-jest", "^.+\\.js$": "<rootDir>/node_modules/babel-jest" }, collectCoverage: true, collectCoverageFrom: [ "src/components/**/*.{js,vue}", "!**/node_modules/**" ], coverageReporters: [ "html", "text-summary" ], }

No tengo absolutamente ninguna idea de por qué no puedo ejecutar mis pruebas o lo que me estoy perdiendo.

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!