From e9d16cbd8ce6e90dc4555dca18d4793f51619d56 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 22 Apr 2026 18:46:57 +0100 Subject: [PATCH] test: keep loader fixture inside plugin boundary --- src/plugins/loader.test.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/plugins/loader.test.ts b/src/plugins/loader.test.ts index f10018fa52a..3f3c5649785 100644 --- a/src/plugins/loader.test.ts +++ b/src/plugins/loader.test.ts @@ -1268,13 +1268,22 @@ module.exports = { const bundledDir = path.join(packageRoot, "dist-runtime", "extensions"); const pluginRoot = path.join(bundledDir, "acpx"); const canonicalPluginRoot = path.join(packageRoot, "dist", "extensions", "acpx"); + const canonicalEntryImport = path.posix.join( + "..", + "..", + "..", + "dist", + "extensions", + "acpx", + "index.js", + ); fs.mkdirSync(pluginRoot, { recursive: true }); fs.mkdirSync(canonicalPluginRoot, { recursive: true }); fs.writeFileSync( path.join(pluginRoot, "index.js"), [ - `export * from "../../../dist/extensions/acpx/index.js";`, - `import defaultModule from "../../../dist/extensions/acpx/index.js";`, + `export * from ${JSON.stringify(canonicalEntryImport)};`, + `import defaultModule from ${JSON.stringify(canonicalEntryImport)};`, `export default defaultModule;`, "", ].join("\n"),