diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index 70d8e7b..dd50fa5 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -1,7 +1,7 @@ import { join, resolve} from "path" import { sync } from "glob" -import * as Mocha from "mocha" +import Mocha from "mocha" // nyc ships no type definitions, so it cannot be imported with an import statement // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires diff --git a/tsconfig.json b/tsconfig.json index 198cad2..b105c7a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,8 @@ ], "sourceMap": true, "rootDir": "src", - "strict": true /* enable all strict type-checking options */ + "strict": true, /* enable all strict type-checking options */ + "esModuleInterop": true /* Additional Checks */ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */