Skip to content

Commit e8bb8ea

Browse files
committed
🐛 pr-feedback: interface for options
1 parent 1a2c8f8 commit e8bb8ea

File tree

1 file changed

+5
-7
lines changed
  • test/e2e/lib/framework/serverApps

1 file changed

+5
-7
lines changed

test/e2e/lib/framework/serverApps/mock.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ import { DEV_SERVER_BASE_URL } from '../../helpers/playwright'
99

1010
export const LARGE_RESPONSE_MIN_BYTE_SIZE = 100_000
1111

12+
interface MockServerOptions {
13+
remoteConfiguration?: RemoteConfiguration
14+
workerImplementation?: string
15+
}
1216
export function createMockServerApp(
1317
servers: Servers,
1418
setup: string,
15-
{
16-
remoteConfiguration,
17-
workerImplementation,
18-
}: {
19-
remoteConfiguration?: RemoteConfiguration
20-
workerImplementation?: string
21-
} = {}
19+
{ remoteConfiguration, workerImplementation }: MockServerOptions = {}
2220
): MockServerApp {
2321
const app = express()
2422
let largeResponseBytesWritten = 0

0 commit comments

Comments
 (0)