[GH-ISSUE #93] importing @opentui/core hides console.log logs #792

Closed
opened 2026-03-14 08:34:44 +03:00 by kerem · 1 comment
Owner

Originally created by @remorses on GitHub (Aug 27, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/93

Originally assigned to: @msmps on GitHub.

Minimal repro

import '@opentui/core'

console.log('I am never shown')
console.log('console.log should be replaced only when calling render(). not on global scope')

setTimeout(() => {}, 1000 * 100)

console.log should be replaced only when calling render() and not on global scope, this way you can run tests normally for code that involves opentui

Originally created by @remorses on GitHub (Aug 27, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/93 Originally assigned to: @msmps on GitHub. Minimal repro ```ts import '@opentui/core' console.log('I am never shown') console.log('console.log should be replaced only when calling render(). not on global scope') setTimeout(() => {}, 1000 * 100) ``` `console.log` should be replaced only when calling render() and not on global scope, this way you can run tests normally for code that involves opentui
kerem 2026-03-14 08:34:44 +03:00
  • closed this issue
  • added the
    core
    label
Author
Owner

@kommander commented on GitHub (Aug 27, 2025):

True. Meanwhile you can use SKIP_CONSOLE_CACHE, which will let everything go through to stdout.

<!-- gh-comment-id:3229659456 --> @kommander commented on GitHub (Aug 27, 2025): True. Meanwhile you can use `SKIP_CONSOLE_CACHE`, which will let everything go through to stdout.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#792
No description provided.