Skip to content

tarojs 3.4.3 jest ReferenceError: ENABLE_INNER_HTML is not defined #11475

Answered by Chen-jj
CharlieYe0205 asked this question in Q & A
Discussion options

You must be logged in to vote

@CharlieYe0205 配置一下 jest.config 试试:

globals: {
ENABLE_INNER_HTML: true,
ENABLE_ADJACENT_HTML: true,
ENABLE_SIZE_APIS: true,
ENABLE_TEMPLATE_CONTENT: true,
ENABLE_MUTATION_OBSERVER: true,
ENABLE_CLONE_NODE: true,
ENABLE_CONTAINS: true,

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by CharlieYe0205
Comment options

You must be logged in to vote
2 replies
@winddies
Comment options

@ApeWhoLovesCode
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
4 participants