This commit is contained in:
Tatyana Kostromskaya
2023-10-04 12:27:24 +00:00
parent 89e7efa45d
commit 5a395b732b
4 changed files with 13 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ const _proxyUrl = 'http://127.0.0.1:8080'
describe('proxy', () => {
beforeAll(async () => {
// Start proxy server
_proxyServer = proxy()
_proxyServer = proxy.createProxy()
await new Promise<void>(resolve => {
const port = Number(_proxyUrl.split(':')[2])
_proxyServer.listen(port, () => resolve())