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

438
Views
vue jest babel error token inesperado 'exportar'

Estoy trabajando en un proyecto vue, quiero agregar pruebas unitarias con broma para los nuevos componentes que se están construyendo, pero cuando ejecuto la yarn test:unit , aparece el siguiente error:

/Users/simon/code/ipp-webapps/node_modules/lodash-es/lodash.js:12 exportar {predeterminado como agregar} desde "./add.js"; ^^^^^^ SyntaxError: Token inesperado 'exportación'

Mi configuración de broma actualmente se ve así en mis paquetes.json

 "jest": { "preset": "@vue/cli-plugin-unit-jest", "transformIgnorePatterns": ["node_modules/lodash-es"], "transform": { "^.+\\.ts$": "ts-jest", "^.+\\.js$": "babel-jest", ".*\\.vue$": "vue-jest" } },

y mi configuración de babel

 module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ] }
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!