playwright-ng-schematics
Version:
Playwright Angular schematics
16 lines (15 loc) • 493 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = installBrowsers;
const node_child_process_1 = require("node:child_process");
function installBrowsers() {
return (tree, context) => {
context.logger.info('Installing browsers...');
(0, node_child_process_1.spawnSync)('npx playwright install', [], {
cwd: process.cwd(),
stdio: 'inherit',
shell: true,
});
return tree;
};
}