cucumber/cucumber-js

View on GitHub
src/runtime/parallel/run_slave.js

Summary

Maintainability
A
0 mins
Test Coverage
import Slave from './slave'

export default async function run() {
  const slave = new Slave({
    sendMessage: m => process.send(m),
    cwd: process.cwd(),
    exit: () => process.exit(),
  })
  process.on('message', m => slave.receiveMessage(m))
}