test(harness): support cache-busted frontend module imports

This commit is contained in:
Alexandre Teixeira
2026-09-22 18:06:18 +01:00
parent 7e798fe925
commit dbba4978ee
7 changed files with 50 additions and 19 deletions
@@ -847,9 +847,10 @@ function resolveImport(specifier, parent) {
throw new Error(`Unexpected non-relative import: ${specifier}`);
}
const cleanSpecifier = specifier.split('?')[0].split('#')[0];
return path.resolve(
path.dirname(parent),
specifier,
cleanSpecifier,
);
}