Skip to content

Commit 287a614

Browse files
committed
refactor: use default import for node:path module
1 parent fe2c785 commit 287a614

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/test/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as path from "path";
1+
import path from "path";
22

33
import { runTests } from "@vscode/test-electron";
44

src/test/suite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as glob from "glob";
22
import * as Mocha from "mocha";
3-
import * as path from "path";
3+
import path from "path";
44

55
export function run(): Promise<void> {
66
// Create the mocha test

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
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. */
1516
// "noUnusedParameters": true, /* Report errors on unused parameters. */
1617
}
17-
}
18+
}

0 commit comments

Comments
 (0)