DOM testing recommendations result in TypeError: Attempted to assign to readonly property.
when setting global ReadableStream
#5845
Labels
bug
Something isn't working
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
Follow the exact steps from https://bun.sh/docs/test/dom#happy-dom
This is reproducible in a repo:
What is the expected behavior?
happy-dom
global registration is successful.What do you see instead?
This seems to happen for the key
ReadableStream
. The following may be a smaller repro:Additional information
happy-dom
should really be usingglobalThis
. But in any case, if this is the recommended approach for DOM testing withbun
then it should probably not error out of the box.The text was updated successfully, but these errors were encountered: