Files
template-app/e2e/better-auth/global-setup.ts
T

11 lines
395 B
TypeScript

// 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<void>> {
const { stack, stop } = await startJauthStack()
process.env.JAUTH_STACK = JSON.stringify(stack)
return stop
}