global-setup.ts 384 B

12345678910
  1. import { prepareDatabase } from './prepare-db'
  2. /**
  3. * With the suite's own server, the database is prepared by the server command
  4. * before `next start`, so there is nothing to do here. Pointed at a server
  5. * somebody else started, this is the only chance to do it.
  6. */
  7. export default async function globalSetup(): Promise<void> {
  8. if (process.env.E2E_BASE_URL) prepareDatabase()
  9. }