Open ken-s-analog opened 2 weeks ago
Hi @ken-s-analog. Sorry, I am pretty busy at the time. Have you looked into it?
I tried to look into it some but didn't make any meaningful progress. The workaround I'm using for now is to vi.mock
the library during testing
Description
Hello!
I have set up
vite
,vitest
, andreact-testing-library
withreact-echarts
and while it works fine, any tests that have anEchart
component fails with this error message:I have also created a barebones repo that reproduces the error: https://github.com/ken-s-analog/react-echarts-failure-example
Link to Reproduction
https://stackblitz.com/edit/vitejs-vite-pc3p6k?file=src%2FApp.test.tsx
Steps to reproduce
npm create vite@latest my-app -- --template react-ts
vitest
,jsdom
,echarts
,@kbox-labs/react-echarts
,@testing-library/jest-dom
,@testing-library/react
App.tsx
App
component in RTLEchart
component, and the tests passJS Framework
React (TS)
Version
1.4.0
Browser
VS Code
Operating System
Additional Information
No response