mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 13:34:06 +01:00
13 lines
341 B
TypeScript
13 lines
341 B
TypeScript
import { deleteUserByEmail } from './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; |