Skip to content

Commit 0cfc4e4

Browse files
authored
Merge pull request #329 from pascalre/feat/mocha-default-import
refactor(test): import Mocha as default export
2 parents beeecae + 5d0b467 commit 0cfc4e4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/test/suite/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { join, resolve} from "path"
22

33
import { sync } from "glob"
4-
import * as Mocha from "mocha"
4+
import Mocha from "mocha"
55

66
// nyc ships no type definitions, so it cannot be imported with an import statement
77
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires

‎tsconfig.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
],
99
"sourceMap": true,
1010
"rootDir": "src",
11-
"strict": true /* enable all strict type-checking options */
11+
"strict": true, /* enable all strict type-checking options */
12+
"esModuleInterop": true
1213
/* Additional Checks */
1314
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
1415
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

0 commit comments

Comments
 (0)