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

439
Views
vue jest babel error unexpected token 'export'

I am working on a vue project, I am wanting to add unit tests with jest for new components being built but when I run yarn test:unit I get the following error,

/Users/simon/code/ipp-webapps/node_modules/lodash-es/lodash.js:12 export { default as add } from "./add.js"; ^^^^^^ SyntaxError: Unexpected token 'export'

My jest config currently looks like this in my packages.json

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

and my babel config

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!