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

221
Views
vue3 + elemento-más broma

npm run jest no hay problema pero npm run jest --coverage

El identificador '_interopRequireDefault' ya se ha declarado. (133:9)

 131 | var _FPLogo = _interopRequireDefault(require("@/assets/logo-02.png")); 132 | > 133 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ^ 134 | 135 | const _hoisted_1 = { 136 | class: "login-container columnCC",

broma.config

 module.exports = { moduleFileExtensions: [ 'ts', 'js', 'jsx', 'tsx', 'json', // tell Jest to handle *.vue files 'vue' ], // setupFiles: ['./__tests__/setup.js'], transform: { // process *.vue files with vue-jest '^.+\\.vue$': require.resolve('vue-jest'), '^.+\\.tsx?$': require.resolve('ts-jest'), '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': require.resolve('jest-transform-stub'), '^.+\\.jsx?$': require.resolve('babel-jest') }, transformIgnorePatterns: ['/node_modules/'], // support the same @ -> src alias mapping in source code moduleNameMapper: { '^@/(.*)$': '<rootDir>/src/$1' }, // testEnvironment: 'jest-environment-jsdom-fifteen', // serializer for snapshots snapshotSerializers: ['jest-serializer-vue'], testMatch: [ '**/tests/unit/**/*.spec.[jt]s?(x)', '**/__tests__/*.[jt]s?(x)', '**/__tests__/**/*.spec.[jt]s?(x)', ], // https://github.com/facebook/jest/issues/6766 testURL: 'http://localhost/' }

.babelrc

 { "plugins": [ "babel-plugin-transform-vite-meta-env" ], "presets": [ "@vue/babel-preset-jsx", [ "babel-preset-vite" ], [ "@babel/preset-env", { "targets": { "node": "current" } } ] ] }

Si hay más de uno, se informará de un error.

Que debo hacer para evitar este error espero que se pueda compilar normalmente
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!