diff --git a/js/tests/test.mjs b/js/tests/test.mjs index 62c007526..6f5ede764 100644 --- a/js/tests/test.mjs +++ b/js/tests/test.mjs @@ -296,7 +296,7 @@ const main = async () => { const [inject, testCode] = parts.length < 2 ? ["", test] : parts const combined = `${inject.trim()}\n${rawCode .replace(inject.trim(), "") - .trim()}\n${testCode.trim()}\n` + .trim()}\n;${testCode.trim()}\n` const url = `${tmpdir()}/${name}.mjs` await writeFile(url, combined)