Skip to content

Commit

Permalink
Import react-shallow-renderer directly as it is removed from react 19
Browse files Browse the repository at this point in the history
  • Loading branch information
anajavi committed Jun 20, 2024
1 parent 0af8bfd commit 9a75775
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 50 deletions.
97 changes: 55 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-perf": "^3.3.2",
"highcharts": "^11.4.3",
Expand All @@ -32,10 +32,11 @@
"prettier": "^3.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-shallow-renderer": "^16.15.0",
"react-test-renderer": "^18.3.1",
"rimraf": "^5.0.7",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4"
},
"workspaces": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import ShallowRenderer from 'react-shallow-renderer';

import * as all from '../../../src';
import Series from '../../../src/components/Series';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import ShallowRenderer from 'react-shallow-renderer';

import withSeriesType from '../../../src/components/WithSeriesType';
import Series from '../../../src/components/Series';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import ShallowRenderer from 'react-shallow-renderer';

import YAxis from '../../../src/components/YAxis/YAxis';
import Axis from '../../../src/components/Axis';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import ShallowRenderer from 'react-shallow-renderer';

import ZAxis from '../../../src/components/ZAxis/ZAxis';
import Axis from '../../../src/components/Axis';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import ShallowRenderer from 'react-shallow-renderer';

import { XAxis } from 'react-jsx-highcharts';
import MapXAxis from '../../../src/components/XAxis';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import ShallowRenderer from 'react-shallow-renderer';

import { YAxis } from 'react-jsx-highcharts';
import MapYAxis from '../../../src/components/YAxis';
Expand Down

0 comments on commit 9a75775

Please sign in to comment.