Skip to content

Commit 7a28fa9

Browse files
authored
Fix React Canary and Experimental tests (#1353)
1 parent a4744fa commit 7a28fa9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/setup-env.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import '@testing-library/jest-dom/extend-expect'
22
import './failOnUnexpectedConsoleCalls'
33
import {TextEncoder} from 'util'
4+
import {MessageChannel} from 'worker_threads'
45

56
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

Comments
 (0)