Skip to content

fix: streamline live integration test runner#70

Merged
crcatala merged 1 commit into
mainfrom
fix/live-test-runner
Jul 15, 2026
Merged

fix: streamline live integration test runner#70
crcatala merged 1 commit into
mainfrom
fix/live-test-runner

Conversation

@crcatala-vps

Copy link
Copy Markdown
Collaborator

Summary

  • add bun run test:live for locally running the live TickTick API suite
  • authenticate before test collection and fail with actionable guidance for a missing or rejected TICKTICK_TOKEN
  • reuse one live client for the full Bun test process so every request carries the same TickTick X-Device fingerprint
  • document the local command and distinguish its environment token from the CLI credential store

Technical details

test:live runs Bun with scripts/live-test-preflight.ts as a preload. The preload calls getProfile() using the environment token and exits before test collection on a missing token or HTTP 401. getLiveClient() now memoizes the client, so the preflight and all suites share its device ID rather than creating one per suite.

Validation

  • bun test tests/unit/throttled-client.test.ts
  • bun run typecheck
  • bunx oxlint scripts/live-test-preflight.ts tests/helpers/live-test.ts
  • verified the missing-token preflight exits with status 1

@crcatala

Copy link
Copy Markdown
Owner

/run-live-tests

@github-actions

Copy link
Copy Markdown

✅ Live API tests passed. View logs

@crcatala
crcatala merged commit e8c7e8c into main Jul 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants