test: split twitter client tests

This commit is contained in:
Peter Steinberger
2026-01-01 14:09:18 +01:00
parent 7a4782ddc4
commit f1663c8609
9 changed files with 2109 additions and 2044 deletions
+17
View File
@@ -0,0 +1,17 @@
import { TwitterClient } from '../src/lib/twitter-client.js';
export const validCookies = {
authToken: 'test_auth_token',
ct0: 'test_ct0_token',
cookieHeader: 'auth_token=test_auth_token; ct0=test_ct0_token',
source: 'test',
};
export type TwitterClientPrivate = TwitterClient & {
getCurrentUser: () => Promise<{
success: boolean;
user?: { id: string; username: string; name: string };
error?: string;
}>;
getLikesQueryIds: () => Promise<string[]>;
};