mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-12 01:39:54 -06:00
17 lines
312 B
CoffeeScript
17 lines
312 B
CoffeeScript
CA = require("./ca")
|
|
Server = require("./server")
|
|
|
|
module.exports = {
|
|
create: (dir, port, options) ->
|
|
CA.create(dir)
|
|
.then (ca) ->
|
|
Server.create(ca, port, options)
|
|
|
|
reset: ->
|
|
Server.reset()
|
|
|
|
httpsServer: (onRequest) ->
|
|
require("../test/helpers/https_server").create(onRequest)
|
|
|
|
}
|