tarojs 3.4.3 jest ReferenceError: ENABLE_INNER_HTML is not defined #11475
Answered
by
Chen-jj
CharlieYe0205
asked this question in
Q & A
-
tarojs version 3.4.3 when importing Axios or using Taro.request(), test report error of "ReferenceError: ENABLE_INNER_HTML is not defined" ● Test suite failed to run
|
Beta Was this translation helpful? Give feedback.
Answered by
Chen-jj
Mar 18, 2022
Replies: 2 comments 2 replies
-
@CharlieYe0205 配置一下 jest.config 试试: taro/packages/taro-runtime/jest.config.js Lines 28 to 35 in 92f3126 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CharlieYe0205
-
@Chen-jj 您好,请问是怎么配置的吗,我配置jest.config无效,复现demo: https://github.com/ApeWhoLovesCode/test-react-taro |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@CharlieYe0205 配置一下 jest.config 试试:
taro/packages/taro-runtime/jest.config.js
Lines 28 to 35 in 92f3126