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

175
Views
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
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!