diff --git a/packages/test/src/util/browser-tests-runner/bundler.js b/packages/test/src/util/browser-tests-runner/bundler.js
index <HASH>..<HASH> 100644
--- a/packages/test/src/util/browser-tests-runner/bundler.js
+++ b/packages/test/src/util/browser-tests-runner/bundler.js
@@ -82,8 +82,8 @@ function toVirtualModule(test) {
             new WrapStream(
               `__init_test__(${JSON.stringify(test)}, require(${JSON.stringify(
                 relativePath
-              )}), function() {\n`,
-              `\n});`
+              )}), function() {`,
+              `});`
             )
           );
       },
Remove new lines from test wrappers for better line numbers in stack traces.