From bfb774f60566808d1dd5828d44fb05c5e26eb20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sun, 30 Jun 2024 11:24:55 +0200 Subject: [PATCH] Fix tests with React 16 --- test/util/render.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/util/render.js b/test/util/render.js index 4ec49b2..23bbca5 100644 --- a/test/util/render.js +++ b/test/util/render.js @@ -3,10 +3,11 @@ * https://github.com/troybetz/react-youtube */ -import 'min-react-env/install'; import React from 'react'; import ReactDOM from 'react-dom'; import { act } from 'react-dom/test-utils'; +// Doing this after React is loaded makes React do a bit less DOM work +import 'min-react-env/install'; import env from 'min-react-env'; import createVimeo from './createVimeo';