From 180e507c381232b2864752ad4d7def2e9b4ee628 Mon Sep 17 00:00:00 2001 From: Federico Poli Date: Wed, 3 Jan 2024 10:52:30 +0100 Subject: [PATCH] Fix import error --- src/test/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/index.ts b/src/test/index.ts index 9835ed67..29247b13 100644 --- a/src/test/index.ts +++ b/src/test/index.ts @@ -1,10 +1,10 @@ import * as path from "path"; import * as Mocha from "mocha"; import * as glob from "glob"; -import NYC = require("nyc"); export async function run(): Promise { - const nyc: NYC = new NYC({ + const NYC = await import("nyc"); + const nyc = new NYC({ cwd: path.join(__dirname, "..", ".."), instrument: true, extension: [