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

167
Vistas
how can i ignore compilation error while running npm test using mocha in typescript

I am trying to run some test cases using mocha on my project but, I am not able to run any test and the project contains some compilation errors.

Do we have some option or flag from which we can ingore or suppress errors and run the test cases

script command: "test": "mocha --timeout 10000 -r ts-node/register test/*.ts"

tsconfig.json

    "compilerOptions": {
        "outDir": "./dist",
        "allowJs": true,
        "target": "es2017",
        "skipLibCheck": true,
        "strict": false,
        "removeComments": true,
        "preserveConstEnums": true,
        "sourceMap": true,
        "noImplicitUseStrict" : true,
        "module": "commonjs",
        "noImplicitAny" : false, 
        "skipDefaultLibCheck": true,
        "noStrictGenericChecks" : true,
        "alwaysStrict" : false,
    },
    "include": [
        "src//**/*"
    ]
}

Please help !!!!

about 4 years ago · Juan Pablo Isaza
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