Question
測試文件(xxx.test.tsx)識別不了es6語法(import)
原因
尚未找到(猜測是ts+react默認沒有配置TSX識別文件,需要下載)
解決方案
下載ts-node並在mocha.opts中配置
https://blog.csdn.net/prufeng/article/details/83626516#Install_7
測試文件(xxx.test.tsx)識別不了es6語法(import)
尚未找到(猜測是ts+react默認沒有配置TSX識別文件,需要下載)
下載ts-node並在mocha.opts中配置
https://blog.csdn.net/prufeng/article/details/83626516#Install_7