mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-14 05:10:45 -05:00
17 lines
270 B
CoffeeScript
17 lines
270 B
CoffeeScript
Promise = require("bluebird")
|
|
|
|
Proxy = require("http-mitm-proxy")
|
|
proxy = Proxy()
|
|
|
|
proxy.onRequest (ctx, cb) ->
|
|
cb()
|
|
|
|
module.exports = {
|
|
start: ->
|
|
new Promise (resolve) ->
|
|
proxy.listen({port: 8081, forceSNI: true}, resolve)
|
|
|
|
stop: ->
|
|
proxy.close()
|
|
|
|
} |