From 806d1ff94040d8ea92ed3631d7bb0dfaf3bd71dc Mon Sep 17 00:00:00 2001 From: Neil Brayfield Date: Fri, 11 Feb 2022 00:38:14 +0000 Subject: [PATCH] Fix coverage reports not firing (#219) --- CHANGELOG.md | 1 + package.json | 3 ++- test/index.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58dd42b..0ac856b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to the "php-docblocker" extension will be documented in this file. ## [Unreleased] +- Fix issue with coverage reports not firing ## [2.6.1] - 2021-10-12 - Fix double start delimeter when vscode setting `editor.autoClosingBrackets` is set to `never` diff --git a/package.json b/package.json index e5a8567..e601d4a 100644 --- a/package.json +++ b/package.json @@ -142,6 +142,7 @@ } }, "scripts": { + "clean": "rm -rf ./coverage/* ./.nyc_output ./out", "verify-pat": "vsce verify-pat", "vscode:prepublish": "npm run -S esbuild-base -- --minify", "lint": "tslint -p ./", @@ -166,7 +167,7 @@ "esbuild": "^0.12.29", "markdown-table-ts": "^1.0.3", "mocha": "^9.1.1", - "nyc": "^15.0.0", + "nyc": "^15.1.0", "typescript": "^3.9.10", "vsce": "^1.100.0", "vscode-test": "^1.6.1" diff --git a/test/index.ts b/test/index.ts index 201b053..36f55d0 100644 --- a/test/index.ts +++ b/test/index.ts @@ -53,6 +53,6 @@ export async function run(): Promise { }); } finally { nyc.writeCoverageFile(); - nyc.report(); + await nyc.report(); } }