Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 4 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /