Run tests in browser (#18521)
This commit is contained in:
1 parent
cd0c3292d3
commit
06a73b700b
17 files changed
+1115
-28
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user