Skip to content

Commit

Permalink
deps: update min-react-env
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jun 30, 2024
1 parent 07b4ee8 commit 51e4aa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"eslint-plugin-react-hooks": "^4.3.0",
"expect": "^1.20.2",
"md-insert": "^1.0.1",
"min-react-env": "^1.0.1",
"min-react-env": "^2.0.0",
"mocha": "^10.0.0",
"prop-types-table": "^1.0.0",
"proxyquire": "^2.1.3",
Expand Down
4 changes: 1 addition & 3 deletions test/util/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
* 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';
import env from 'min-react-env';
import createVimeo from './createVimeo';

Object.assign(global, env);
global.navigator ??= { userAgent: 'min-react-env' };

const reactMajor = parseInt((ReactDOM.version || '16').split('.')[0], 10);

function noAct(fn) {
Expand Down

0 comments on commit 51e4aa0

Please sign in to comment.