mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-09 08:00:14 -06:00
* chore: convert @packages/https-proxy to TypeScript and use vitest instead of mocha * chore: address comments from code review * Update packages/https-proxy/vitest.config.ts
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import { CA } from './ca'
|
|
import { create as createServer, reset as resetServer } from './server'
|
|
|
|
export async function create (dir: string, port: number, options: any) {
|
|
const ca = await CA.create(dir)
|
|
|
|
const server = await createServer(ca, port, options)
|
|
|
|
return server
|
|
}
|
|
|
|
export function reset () {
|
|
return resetServer()
|
|
}
|