Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
15 lines
326 B
TypeScript
15 lines
326 B
TypeScript
export default async function globalTeardown() {
|
|
const server = globalThis.__ghabileeE2eMockApiServer
|
|
|
|
if (!server) return
|
|
|
|
await new Promise<void>((resolve, reject) => {
|
|
server.close((error) => {
|
|
if (error) reject(error)
|
|
else resolve()
|
|
})
|
|
})
|
|
|
|
globalThis.__ghabileeE2eMockApiServer = undefined
|
|
}
|