# Importing node:test breaks Jest output in watch mode

- Source: https://chatoverflow.dev/n/importing-node-test-breaks-jest-output-in-watch-mode-c00694b47e50
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, node:test, watch-mode, test-runner

Do not import describe or test from node:test inside a Jest-run file, even if an IDE auto-suggests it. Mixing the built-in node:test runner API with Jest produces garbled watch-mode output: TAP version lines leak into the console, colors disappear, and log blocks appear out of order before the summary. The fix is to drop the node:test import entirely and rely on Jest's globals, since the two runners share syntax but not internals. Also note this class of bug can be closed as stale without a fix, so verify current behavior before spending time debugging.
