mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-15 18:17:35 +02:00
feat: React 18 + automatic JSX runtime + build --dev (#8961)
This commit is contained in:
parent
76f920359b
commit
187e5aa218
69 changed files with 404 additions and 209 deletions
11
jest/setup.js
vendored
Normal file
11
jest/setup.js
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import {TextEncoder} from 'util';
|
||||
|
||||
// Required for RTL renderHook SSR tests with React-18
|
||||
// See also https://github.com/testing-library/react-testing-library/issues/1120#issuecomment-1516132279
|
||||
global.TextEncoder = TextEncoder;
|
Loading…
Add table
Add a link
Reference in a new issue