We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4744fa commit 7a28fa9Copy full SHA for 7a28fa9
tests/setup-env.js
@@ -1,5 +1,9 @@
1
import '@testing-library/jest-dom/extend-expect'
2
import './failOnUnexpectedConsoleCalls'
3
import {TextEncoder} from 'util'
4
+import {MessageChannel} from 'worker_threads'
5
6
global.TextEncoder = TextEncoder
7
+// TODO: Revisit once https://github.com/jsdom/jsdom/issues/2448 is resolved
8
+// This isn't perfect but good enough.
9
+global.MessageChannel = MessageChannel
0 commit comments