mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
The pino transports run in a worker thread reached through a message port that stays referenced once a log line is in flight, so the node:test child process kept running after every test and hook had finished. The runner then canceled the file's root test with "Promise resolution is still pending but the event loop has already resolved" and the suite hung until something killed it, which happened in roughly two runs out of five. `logTransportTargets` returns no targets inside a node:test child process, which `node --test` marks with `NODE_TEST_CONTEXT`, so tests log straight to stdout and the process exit is deterministic. Production still uses the console, file, and Loki transports. AI-assisted-by: step-5-preview-free