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
+1 -1
View File
@@ -53,7 +53,7 @@ def _run_markdown_case(markdown: str, render_expr: str = "mod.mdToHtml(input)",
let source = fs.readFileSync('./static/js/markdown.js', 'utf8');
source = source.replace(
/import uiModule from ['"]\.\/ui\.js['"];/,
/import uiModule from ['"]\.\/ui\.js(?:\?[^'"]*)?['"];?/,
''
);
source = source.replace(