Open History to see the last commit
1import { localDummyServer } from './localDummyServer'
2import { getDummyServerPort } from './derivePort'
3β
4export async function e2eStartDummyServer(input: string) {
5 const port = await getDummyServerPort(input)
6β
7 return await localDummyServer(port)
8}
9β
10export async function e2eStopDummyServer(input: string) {
11 const port = await getDummyServerPort(input)
12β
13 await fetch(`http://localhost:${port}/stop`, {
14 method: 'POST',
15 })
16}