mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
* feat: add global teardown to remove test data and add registration/log-out to auth flow * refactor(models/Conversation): index user field and add JSDoc to deleteConvos * refactor: add user index to message schema and ensure user is saved to each Message * refactor: add user to each saveMessage call * fix: handle case where title is null in zod schema * feat(e2e): ensure messages are deleted on cleanUp * fix: set last convo for all endpoints on conversation update * fix: enable registration for CI env
12 lines
253 B
TypeScript
12 lines
253 B
TypeScript
import localUser from '../config.local';
|
|
import cleanupUser from './cleanupUser';
|
|
|
|
async function globalTeardown() {
|
|
try {
|
|
await cleanupUser(localUser);
|
|
} catch (error) {
|
|
console.error('Error:', error);
|
|
}
|
|
}
|
|
|
|
export default globalTeardown;
|