2 people reported

All time, since Aug 30.

expect resolves/rejects hangs

“expect(value).rejects never settles when value is a thenable that starts its work inside an overridden then().”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/5630/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

expect().resolves/rejects hangs past test timeout on pending thenables. expect(...).resolves waits for the promise before it returns; thenables that start work in then() never settle and the run hangs.

Is this your bug?

File my report
Where
bun:test
Versions
1.4.1-canary.1 to 1.4.3
Platforms
macOS
How bad
Breaks a normal workflow.

Not quite your bug?

  1. setImmediate hops stall inside expect().resolves/.rejects with open I/O3 people

Original reports2, newest first

  1. bun:test: expect(promise).resolves blocks until the promise settles, and the test timeout never fires#45714
  2. bun:test: expect(thenable).rejects hangs when the thenable starts work in its overridden then()#40949

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.