Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('setup browser, server & tunnel', function* () {
yield server.listen.bind(server, 0)
tunnel = yield localtunnel.bind(localtunnel, server.address().port)
tunnel.tunnel_cluster.on('error', function (err) {
if (!err.code || err.code !== 'ETIMEDOUT') {
throw err
}
})
server.url = tunnel.url
yield browser.init(config)
})