how to run unit testing in create react app which importing tsx file
So, i made a create-react-app, and it already has npm run test
now, I am importing one library,
import { createWeb3Modal } from '@web3modal/ethers/react'
and this react is imported from here
node_modules/@web3modal/ethers/dist/types/exports/react.tsx
and my App.jsx is in jsx, and this react imported files is in tsx, so, when I run npm run test
,
it gives me error of