mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[server-ce] e2e tests: add capability for reconfiguring the instance GitOrigin-RevId: 44ec800b5b37497b3122310a94f637c24ff2667a
17 lines
396 B
TypeScript
17 lines
396 B
TypeScript
import { reconfigure } from './hostAdminClient'
|
|
|
|
let lastConfig: string
|
|
|
|
export function startWith({ pro = false, version = 'latest', vars = {} }) {
|
|
before(async function () {
|
|
const cfg = JSON.stringify({ pro, version, vars })
|
|
if (lastConfig === cfg) return
|
|
|
|
this.timeout(100 * 1000)
|
|
await reconfigure({ pro, version, vars })
|
|
lastConfig = cfg
|
|
})
|
|
}
|
|
|
|
export { reconfigure }
|