Skip to content

Conversation

@sylvain-abadie
Copy link

@sylvain-abadie sylvain-abadie commented Jan 22, 2026

Description

Screenshot 2026-01-22 at 12 31 51 PM

Adds the server.forwardClientLogs config option to forward console.log, console.warn, console.error, etc. from the device to the terminal during test execution.

Related Issue

N/A

Context

  • Uses Metro's built-in forwardClientLogs server option to receive client_log events
  • Formats logs using util.format() to support printf-style specifiers (%s, %d, etc.)
  • Styled output with colored level tags (LOG, WARN, ERROR, INFO, DEBUG) matching Jest's visual style

Testing

  • Added unit tests in packages/jest/src/__tests__/client-log-handler.test.ts
  • Manual testing with playground app using various console methods

@vercel
Copy link

vercel bot commented Jan 22, 2026

@sylvain-abadie is attempting to deploy a commit to the Callstack Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant