WhatBrokeToday
GTA 6FAQ
Bun

Bun Test AOT Coverage Incorrectly Reports Conditional Object Spreads as Unrun

minor

Is it fixed? Not yet.

Ongoing since Nov 17, 02:17 UTC. First reported Nov 17, 02:17 UTC.

What happened

When running tests with bun test --aot --coverage, conditional object spread lines are incorrectly reported as never run. The issue affects Bun canary versions including 1.4.5-canary.1 on Darwin and Linux platforms.

What caused it?

Under active investigation. No report has identified a root cause yet.

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    bun test --aot --coverage: the lines of a conditional object spread are reported as never run

    Source

Evidence

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    bun test --aot --coverage: the lines of a conditional object spread are reported as never run(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.5-canary.1+ed4363334 (npm 1.4.4-canary.20261115.1); also 1.4.5-canary.1+8b22022db (the GitHub canary release of 2026-11-16). What platform is your computer? Darwin 27.2.0 arm64 (the minimal repro). The same miscount showed on Linux in GitHub Actions on the real file below. What steps can reproduce the bug? m3.ts: export function spreads(a: boolean) { const extra = { four: 4 }; return { ...{ one: 1, }, ...(a ? { two: 2, } : {}), ...(a && { three: 3, }),…

    by josebant29 0upvotes 1comments

FAQ

What happened in the Bun issue?

When running tests with bun test --aot --coverage, conditional object spread lines are incorrectly reported as never run. The issue affects Bun canary versions including 1.4.5-canary.1 on Darwin and Linux platforms.

What is affected by the Bun issue?

Bun (versions: 1.4.5-canary.1). Also affected at the same time: Linux.

When did the Bun issue start and end?

It started Nov 17, 02:17 UTC and is still ongoing (2 d 2 h so far). This page updates as it develops.

How do I get alerts for Bun?

Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.