From a9aed36e25be7ecacc72413bc9e91234b237ffb5 Mon Sep 17 00:00:00 2001 From: Ikenna Innocent Date: Tue, 29 Sep 2026 12:26:29 +0100 Subject: [PATCH] fix(lint): remove duplicate vitest import in tests/csp.test.js tests/csp.test.js imports `{ describe, it, expect }` from 'vitest' twice - on line 1 and again on line 5. ESLint rejects the file outright: 5:10 error Parsing error: Identifier 'describe' has already been declared Because the file does not parse, ESLint could not check it and Vitest could not transform it, so the whole file was silently excluded from both the lint result and the test run. Removing the duplicate import is the entire fix. This is the last of master's parse errors that is not also a build blocker. The other three have been fixed on master or in #1108. Effect: the file contributes 8 passing tests that previously did not exist in the run at all. --- tests/csp.test.js | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/csp.test.js b/tests/csp.test.js index 3eb8fab5..c3b1e12c 100644 --- a/tests/csp.test.js +++ b/tests/csp.test.js @@ -2,7 +2,6 @@ import { describe, it, expect } from 'vitest'; import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; -import { describe, it, expect } from 'vitest'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename);