refactor: split cli and library entry

This commit is contained in:
Peter Steinberger
2026-01-01 12:31:02 +01:00
parent e9922c2901
commit d8c2181dfb
9 changed files with 1097 additions and 1056 deletions
+9
View File
@@ -0,0 +1,9 @@
import { describe, expect, it } from 'vitest';
import { resolveCredentials, TwitterClient } from '../src/index.js';
describe('library exports', () => {
it('exposes primary library surface', () => {
expect(typeof TwitterClient).toBe('function');
expect(typeof resolveCredentials).toBe('function');
});
});
+1 -4
View File
@@ -1345,10 +1345,7 @@ describe('TwitterClient', () => {
timeline: {
instructions: [
{
entries: [
makeSearchEntry('1'),
{ content: { cursorType: 'Bottom', value: 'cursor-1' } },
],
entries: [makeSearchEntry('1'), { content: { cursorType: 'Bottom', value: 'cursor-1' } }],
},
],
},