mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
14 lines
341 B
TypeScript
14 lines
341 B
TypeScript
import { deleteUserByEmail } from "../test_util/deleteUser";
|
|
|
|
async function globalTeardown() {
|
|
const email = process.env.NEXT_PUBLIC_TEST_USER_EMAIL;
|
|
|
|
if (!email) {
|
|
throw new Error("NEXT_PUBLIC_TEST_USER_EMAIL must be set");
|
|
}
|
|
console.log("deleting user...");
|
|
await deleteUserByEmail(email);
|
|
}
|
|
|
|
export default globalTeardown;
|