Files
test-repo/tests/config/install-browser.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
421 B
JavaScript
Raw Normal View History

2025-12-24 22:57:02 +08:00
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;