-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
I'm using the react-apexcharts in a project. I save the data in a state after a successful response. In production I have no problem, but when unit testing it I get the error below
parser Error
38 |
39 | if (data.ret !== 0) {
> 40 | setDataSeries(data[0]);
| ^
41 | } else {
42 | handleFetchError(data.message);
43 | }
at ../../node_modules/apexcharts/dist/apexcharts.common.js:5:58374
at Ee.parse (../../node_modules/apexcharts/dist/apexcharts.common.js:5:58785)
at Ee.init (../../node_modules/apexcharts/dist/apexcharts.common.js:5:36195)
at new Dt (../../node_modules/apexcharts/dist/apexcharts.common.js:5:36075)
at new Ee (../../node_modules/apexcharts/dist/apexcharts.common.js:5:57376)
at He._set (../../node_modules/apexcharts/dist/apexcharts.common.js:5:60728)
at He.to (../../node_modules/apexcharts/dist/apexcharts.common.js:5:60617)
at Qe.plot (../../node_modules/apexcharts/dist/apexcharts.common.js:5:79965)
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:5:12997)
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:5:12041)
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:5:104459)
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:5:489314)
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:5:485619)
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:5:517218)
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:37:32947)
at t.create (../../node_modules/apexcharts/dist/apexcharts.common.js:5:5550)
at ../../node_modules/apexcharts/dist/apexcharts.common.js:37:31125
at t.value (../../node_modules/apexcharts/dist/apexcharts.common.js:37:14535)
at ../../node_modules/react-apexcharts/dist/react-apexcharts.min.js:1:3963
I am on the latest version for apexcharts (v5.3.5) and latest version for react-apexcharts (v1.8.0)
I am also using the following packges for testing
jest: 30.2.0,
jest-environment-jsdom: 30.2.0,
@testing-library/dom: 10.4.1,
@testing-library/jest-dom: 6.9.1,
@testing-library/react: 12.1.5,
@testing-library/react-hooks: "^8.0.1,
Metadata
Metadata
Assignees
Labels
No labels