Run tests in browser (#18521)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-12-24 22:57:02 +08:00
1 parent cd0c3292d3
commit 06a73b700b
17 files changed
+1115 -28

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { createRequire } from "node:module";
function installBrowserSync() {
const { default: makeSynchronized } = createRequire(import.meta.url)(
"make-synchronized",
);
const { installBrowser } = makeSynchronized(
new URL("./browser/browser.js", import.meta.url),
);
const browser = process.env.TEST_RUNTIME_BROWSER || "chrome";
installBrowser({ browser });
}
export default installBrowserSync;