mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-14 05:10:45 -05:00
* 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>
20 lines
441 B
CoffeeScript
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()
|