// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0 // Starts the J-auth stack once for the run and removes it after (containers, volumes, processes). import { startJauthStack } from "./stack" export default async function globalSetup(): Promise<() => Promise> { const { stack, stop } = await startJauthStack() process.env.JAUTH_STACK = JSON.stringify(stack) return stop }