Files
cypress/packages/https-proxy/lib/proxy.ts
Bill Glesias 4d904e272f chore: refactor @packages/https-proxy to TypeScript and use vitest instead of mocha (#32718)
* 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
2025-10-15 14:00:41 -04:00

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()
}