UNPKG

e2ed

Version:

E2E testing framework over Playwright

16 lines (14 loc) 719 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const node_child_process_1 = require("node:child_process"); const node_path_1 = require("node:path"); const internal_1 = require("../constants/internal"); const entrypoitFilePath = (0, node_path_1.join)(internal_1.INSTALLED_E2ED_DIRECTORY_PATH, 'bin', 'runE2edInLocalEnvironment.js'); const execArgv = internal_1.DEBUG_PORT !== undefined ? [`--inspect-brk=${internal_1.DEBUG_PORT}`] : []; const e2edProcess = (0, node_child_process_1.fork)(entrypoitFilePath, process.argv.slice(2), { execArgv, stdio: 'inherit' }); e2edProcess.on('exit', (code) => { process.on('exit', () => { process.exit(code); }); });