mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
17 lines
330 B
TypeScript
17 lines
330 B
TypeScript
|
|
import cleanupUser from './cleanupUser';
|
||
|
|
|
||
|
|
async function globalTeardown() {
|
||
|
|
const user = {
|
||
|
|
email: String(process.env.E2E_USER_EMAIL),
|
||
|
|
password: String(process.env.E2E_USER_PASSWORD),
|
||
|
|
};
|
||
|
|
|
||
|
|
try {
|
||
|
|
await cleanupUser(user);
|
||
|
|
} catch (error) {
|
||
|
|
console.error('Error:', error);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default globalTeardown;
|