diff --git a/src/test/index.ts b/src/test/index.ts index 9835ed67..0049565c 100644 --- a/src/test/index.ts +++ b/src/test/index.ts @@ -1,7 +1,7 @@ import * as path from "path"; import * as Mocha from "mocha"; import * as glob from "glob"; -import NYC = require("nyc"); +import NYC from "nyc"; export async function run(): Promise { const nyc: NYC = new NYC({ diff --git a/typings/nyc/index.d.ts b/typings/nyc/index.d.ts index ef39db0c..11885239 100644 --- a/typings/nyc/index.d.ts +++ b/typings/nyc/index.d.ts @@ -1,9 +1,8 @@ declare module 'nyc' { - class NYC { + export default class NYC { constructor(config?: unknown); createTempDirectory(): Promise; writeCoverageFile(): Promise; wrap(): Promise; } - export = NYC; -} \ No newline at end of file +}