I'm getting error while runing the jest test case using react-testing library

Alternatively, the BroadcastChannel is also available through the Node native "worker_threads" module.
All you need to do is run this in/before your test:
self.BroadcastChannel = require('worker_threads').BroadcastChannel;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With