FibreFoX commented on issue #16709: URL: https://github.com/apache/echarts/issues/16709#issuecomment-1342738328
@Sujith1799 not yet, the only workaround I know is to not import the page when testing, as suggested here: https://github.com/facebook/create-react-app/issues/12063#issuecomment-1215725669 Something like this: ```js // important: exclude this from testing, because Jest is unable to work with Apache EChart // https://github.com/facebook/create-react-app/issues/12063 const YourComponentWithEcharts = (process.env.NODE_ENV === "test") ? (() => { return null; }) : lazy(() => import("./YourComponentWithEcharts")); ``` This does not "make it testable", it just makes jest jump over the problematic stuff (until its fixed). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
