How do I use EUI's testenv
with React?
#4380
-
Namely I'm trying to mock I tried creating a
But this didn't seem to work. I changed my When I add either of the following snippets directly to my test files, it works as you'd expect:
Originally posted by @BentoumiTech in #1381 (comment)
Originally posted by @thompsongl in #4212 (comment) But it seems wrong to have to do this in every test file. Any ideas, anyone? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I question whether that config file is truly being used; CRA seems to rely on the package.json config method. |
Beta Was this translation helpful? Give feedback.
I question whether that config file is truly being used; CRA seems to rely on the package.json config method.
As for the two snippets, the second one should not work because we opted to not add the second parameter to
htmlIdGenerator
.