Skip to content

Commit

Permalink
Fix React Canary and Experimental tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 28, 2024
1 parent a4744fa commit e7045db
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 e7045db

Please # to comment.