Files
cypress/packages/https-proxy/test/spec_helper.coffee
Zach Bloomquist b568e82545 Do not send requests for SNI server through upstream proxy (#4275)
* add test to ensure that SNI server will never go through proxy

* prevent test from false positive

* ensure that SNI server requests never go through proxy

* e2e test that https-proxy does not pass sni reqs thru upstream

* improve debug logging in https-proxy

* fix using cwd, not workspaceFolder for terminals manager

* remove dead code

* stop the debug proxy after each test


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-05-22 02:13:33 -04:00

20 lines
441 B
CoffeeScript

chai = require("chai")
sinon = require("sinon")
Promise = require("bluebird")
sinonChai = require("sinon-chai")
sinonPromise = require("sinon-as-promised")(Promise)
global.request = require("request-promise")
global.sinon = sinon
global.supertest = require("supertest")
chai.use(sinonChai)
global.expect = chai.expect
beforeEach ->
@sandbox = sinon.sandbox.create()
afterEach ->
@sandbox.restore()