Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

453
Vistas
Ignore imports from dependencies in node modules in jest config

I'm currently setting up unit tests for a project and have stumbled on a issue with imports on a dependency.

My jest.config.js is:

export default {
    preset: "ts-jest/presets/default",
    testEnvironment: 'jsdom',
    testRegex: "ui-modifications/test/",
    moduleDirectories: ["node_modules", "src"],
    globals: {
        "ts-jest": {
            diagnostics: false,
            isolatedModules: true,
        },
    },
};

Currently this is the error I am getting when running the tests

Cannot find module '@forge/bridge' from 'src/index.ts'

where @forge/bridge is the said dependency and src/index.ts is the file I am currently trying to test.

I am assuming I either have some config missing or some wrong.

Any help would be appreciated :)

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda