From 8147238f2c2c5bc749e871bda18aedb66e5adad6 Mon Sep 17 00:00:00 2001 From: Copilot Date: Tue, 3 Mar 2026 13:13:54 +0000 Subject: [PATCH] perf: eliminate redundant compile pass in test:coverage script The test:coverage script previously chained test:unit (which runs compile) and npm test (which runs pretest: compile + lint), causing TypeScript to compile twice and ESLint to run twice on every Linux CI coverage run. Flattened the script to: compile -> lint -> c8 mocha -> vscode-test This removes one full tsc + eslint execution from every Linux CI run. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 76e593e..9f5ab4d 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "lint": "eslint src", "test": "vscode-test", "test:unit": "npm run compile && c8 --config .c8rc.json mocha out/unit/unit.test.js", - "test:coverage": "npm run test:unit && npm test", + "test:coverage": "npm run compile && npm run lint && c8 --config .c8rc.json mocha out/unit/unit.test.js && vscode-test", "deploy": "vsce publish" }, "devDependencies": {