Umijs 怎么enable jsx for jest的测试 #12437
Replies: 2 comments 1 reply
-
哥们,解决了吗?我也遇到单元测试的问题了 |
Beta Was this translation helpful? Give feedback.
1 reply
-
目前绝大多数项目都是 ts 的,只有很老旧的项目升级上来才可能存在 jsx ,所以对 jsx 的支持是不全面,可能存在问题的。 如有兴趣,可以帮助排查为什么存在此问题,或者考虑采用其他的单元测试方式,如 vitest 等。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
写了一个jsx, 写jest测试的时候显示jsx is not enabled, tsx的没有报错
用generator自动生成Jest相关的配置的了
Beta Was this translation helpful? Give feedback.
All reactions