- Extract extractListId to src/lib/extract-list-id.ts with proper tests - Add json-full/includeRaw test for list timeline - Add 404 retry tests for getOwnedLists and getListMemberships - Add tests for skipping invalid list entries and missing owner handling - Use shared TwitterClientPrivate type from fixtures 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
22 lines
686 B
TypeScript
22 lines
686 B
TypeScript
import type { 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[]>;
|
|
getListTimelineQueryIds: () => Promise<string[]>;
|
|
getListOwnershipsQueryIds: () => Promise<string[]>;
|
|
getListMembershipsQueryIds: () => Promise<string[]>;
|
|
refreshQueryIds: () => Promise<void>;
|
|
};
|