Skip to content

Commit

Permalink
Fix React Canary and Experimental tests (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Aug 28, 2024
1 parent a4744fa commit 7a28fa9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/setup-env.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import '@testing-library/jest-dom/extend-expect'
import './failOnUnexpectedConsoleCalls'
import {TextEncoder} from 'util'
import {MessageChannel} from 'worker_threads'

global.TextEncoder = TextEncoder
// TODO: Revisit once https://github.com/jsdom/jsdom/issues/2448 is resolved
// This isn't perfect but good enough.
global.MessageChannel = MessageChannel

0 comments on commit 7a28fa9

Please sign in to comment.