diff --git a/test/server/lib/DocApi.ts b/test/server/lib/DocApi.ts index 24ed9ec3..daa929f0 100644 --- a/test/server/lib/DocApi.ts +++ b/test/server/lib/DocApi.ts @@ -64,6 +64,8 @@ let docs: TestServer; let userApi: UserAPIImpl; let extraHeadersForConfig = {}; +const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT || 34365); + function makeConfig(username: string): AxiosRequestConfig { const originalConfig = configForUser(username); return { @@ -5385,8 +5387,6 @@ async function getWorkspaceId(api: UserAPIImpl, name: string) { return workspaces.find((w) => w.name === name)!.id; } -const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT || 34365); - async function setupDataDir(dir: string) { // we'll be serving Hello.grist content for various document ids, so let's make copies of it in // tmpDir