From 78d5d35b388fe550ea77f43fcac14fe2730493b4 Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Mon, 2 Nov 2026 16:14:10 +0100 Subject: [PATCH] esbuild-test-html-plugin: drop %builddir% expand This got removed from the template with e51cf81cd2cd ("unit tests: Don't load cockpit.js in the qunit HTML template") but we've been deadcode expanding it ever since. Drop it. --- pkg/lib/esbuild-test-html-plugin.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/lib/esbuild-test-html-plugin.js b/pkg/lib/esbuild-test-html-plugin.js index 01a016bd91..14c3df9331 100644 --- a/pkg/lib/esbuild-test-html-plugin.js +++ b/pkg/lib/esbuild-test-html-plugin.js @@ -8,10 +8,8 @@ export const cockpitTestHtmlPlugin = ({ testFiles }) => ({ const data = fs.readFileSync(path.resolve(import.meta.dirname, "qunit-template.html.in"), "utf8"); testFiles.forEach(file => { const test = path.parse(file).name; - const builddir = file.split("/").map(() => "../").join(""); const output = data.toString() .replaceAll("%title%", test) - .replaceAll("%builddir%", builddir) .replaceAll("%script%", test + '.js'); const outdir = path.join(build.initialOptions.outdir, path.dirname(file)); const outfile = test + ".html";